Skip to content

Commit

Permalink
feat: add the ability to configure sslrootcert, sslkey and sslrootcert (
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Dec 3, 2024
1 parent 90541f8 commit c8474df
Show file tree
Hide file tree
Showing 15 changed files with 623 additions and 453 deletions.
2 changes: 1 addition & 1 deletion packages/driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@types/node": "^22.9.0",
"ava": "^6.1.3",
"cspell": "^8.16.0",
"eslint": "^9.14.0",
"eslint": "^9.16.0",
"nyc": "^15.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.6.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@types/node": "^22.9.0",
"ava": "^6.1.3",
"cspell": "^8.16.0",
"eslint": "^9.14.0",
"eslint": "^9.16.0",
"nyc": "^15.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.6.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"eslint-config-canonical": "^44.3.28"
"eslint-config-canonical": "^44.3.33"
},
"main": "./index.cjs",
"name": "@slonik/eslint-config",
Expand Down
2 changes: 1 addition & 1 deletion packages/pg-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@types/pg": "^8.11.10",
"ava": "^6.1.3",
"cspell": "^8.16.0",
"eslint": "^9.14.0",
"eslint": "^9.16.0",
"nyc": "^15.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.6.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/slonik-dataloaders/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"devDependencies": {
"@slonik/eslint-config": "workspace:^",
"@slonik/types": "^46.2.0",
"eslint": "^9.14.0",
"eslint": "^9.16.0",
"slonik": "^46.2.0",
"typescript": "^5.6.3",
"vitest": "^1.6.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"devDependencies": {
"@slonik/eslint-config": "workspace:^",
"ava": "^6.1.3",
"eslint": "^9.14.0",
"eslint": "^9.16.0",
"slonik": "^46.2.0",
"ts-node": "^10.4.0",
"typescript": "^5.6.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/slonik-interceptor-query-cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"devDependencies": {
"@slonik/eslint-config": "workspace:^",
"ava": "^6.1.3",
"eslint": "^9.14.0",
"eslint": "^9.16.0",
"slonik": "^46.2.0",
"ts-node": "^10.4.0",
"typescript": "^5.6.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/slonik-interceptor-query-logging/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"devDependencies": {
"@slonik/eslint-config": "workspace:^",
"ava": "^6.1.3",
"eslint": "^9.14.0",
"eslint": "^9.16.0",
"slonik": "^46.2.0",
"ts-node": "^10.4.0",
"typescript": "^5.6.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/slonik-sql-tag-raw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"devDependencies": {
"@slonik/eslint-config": "workspace:^",
"ava": "^6.1.3",
"eslint": "^9.14.0",
"eslint": "^9.16.0",
"slonik": "^46.2.0",
"ts-node": "^10.4.0",
"typescript": "^5.6.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/slonik/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@types/sinon": "^10.0.20",
"ava": "^6.1.3",
"cspell": "^8.16.0",
"eslint": "^9.14.0",
"eslint": "^9.16.0",
"expect-type": "^0.15.0",
"get-port": "^5.1.1",
"nyc": "^15.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/sql-tag/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@types/node": "^22.9.0",
"ava": "^6.1.3",
"cspell": "^8.16.0",
"eslint": "^9.14.0",
"eslint": "^9.16.0",
"nyc": "^15.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.6.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@types/node": "^22.9.0",
"ava": "^6.1.3",
"cspell": "^8.16.0",
"eslint": "^9.14.0",
"eslint": "^9.16.0",
"nyc": "^15.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.6.3"
Expand Down
56 changes: 28 additions & 28 deletions packages/types/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,31 +1,3 @@
export type PrimitiveValueExpression =
| bigint
| boolean
| Buffer
| null
| number
| readonly PrimitiveValueExpression[]
| string;

export type Query = {
readonly sql: string;
readonly values: readonly PrimitiveValueExpression[];
};

export type QueryResultRow = Record<string, PrimitiveValueExpression>;

export type SerializableValue =
| {
[key: string]: SerializableValue;
}
| boolean
| null
| number
| readonly SerializableValue[]
| SerializableValue[]
| string
| undefined;

/**
* @see https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-PARAMKEYWORDS
*/
Expand All @@ -50,3 +22,31 @@ export type Field = {
readonly dataTypeId: number;
readonly name: string;
};

export type PrimitiveValueExpression =
| bigint
| boolean
| Buffer
| null
| number
| readonly PrimitiveValueExpression[]
| string;

export type Query = {
readonly sql: string;
readonly values: readonly PrimitiveValueExpression[];
};

export type QueryResultRow = Record<string, PrimitiveValueExpression>;

export type SerializableValue =
| boolean
| null
| number
| readonly SerializableValue[]
| SerializableValue[]
| string
| undefined
| {
[key: string]: SerializableValue;
};
2 changes: 1 addition & 1 deletion packages/utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@types/node": "^22.9.0",
"ava": "^6.1.3",
"cspell": "^8.16.0",
"eslint": "^9.14.0",
"eslint": "^9.16.0",
"nyc": "^15.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.6.3",
Expand Down
Loading

0 comments on commit c8474df

Please sign in to comment.