Comparing version 43.0.2 to 43.0.3
@@ -92,2 +92,5 @@ "use strict"; | ||
waitingClients.push(waitingClient); | ||
logger.warn({ | ||
waitingClients: waitingClients.length, | ||
}, `connection pool full; client has been queued`); | ||
return waitingClient.promise; | ||
@@ -94,0 +97,0 @@ } |
@@ -15,3 +15,3 @@ export { createDriverFactory, type Driver, type DriverClient, type DriverClientEventEmitter, type DriverClientState, type DriverCommand, type DriverConfiguration, type DriverEventEmitter, type DriverFactory, type DriverNotice, type DriverQueryResult, type DriverStreamResult, } from './factories/createDriverFactory'; | ||
export { BackendTerminatedError, BackendTerminatedUnexpectedlyError, CheckIntegrityConstraintViolationError, ConnectionError, DataIntegrityError, ForeignKeyIntegrityConstraintViolationError, IdleTransactionTimeoutError, InputSyntaxError, IntegrityConstraintViolationError, InvalidConfigurationError, InvalidInputError, NotFoundError, NotNullIntegrityConstraintViolationError, SchemaValidationError, SlonikError, StatementCancelledError, StatementTimeoutError, TupleMovedToAnotherPartitionError, UnexpectedForeignConnectionError, UnexpectedStateError, UniqueIntegrityConstraintViolationError, } from '@slonik/errors'; | ||
export { type ArraySqlToken, type BinarySqlToken, createSqlTag, createSqlTokenSqlFragment, type FragmentSqlToken, type IdentifierSqlToken, isSqlToken, type JsonBinarySqlToken, type JsonSqlToken, type ListSqlToken, type PrimitiveValueExpression, type QuerySqlToken, type SerializableValue, type SqlFragment, type SqlTag, type SqlToken, type UnnestSqlToken, } from '@slonik/sql-tag'; | ||
export { type ArraySqlToken, type BinarySqlToken, createSqlTag, createSqlTokenSqlFragment, type FragmentSqlToken, type IdentifierSqlToken, isSqlToken, type JsonBinarySqlToken, type JsonSqlToken, type ListSqlToken, type PrimitiveValueExpression, type QuerySqlToken, type SerializableValue, type SqlTag, type SqlToken, type UnnestSqlToken, } from '@slonik/sql-tag'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -6,3 +6,3 @@ /// <reference types="node" /> | ||
import { type SlonikError } from '@slonik/errors'; | ||
import { type PrimitiveValueExpression, type QuerySqlToken, type SqlFragment, type SqlToken } from '@slonik/sql-tag'; | ||
import { type PrimitiveValueExpression, type QuerySqlToken, type SqlFragmentToken, type SqlToken } from '@slonik/sql-tag'; | ||
import { type Readable } from 'node:stream'; | ||
@@ -232,3 +232,3 @@ import { type ConnectionOptions as TlsConnectionOptions } from 'node:tls'; | ||
}; | ||
export type ValueExpression = PrimitiveValueExpression | SqlFragment | SqlToken; | ||
export type ValueExpression = PrimitiveValueExpression | SqlFragmentToken | SqlToken; | ||
export type InternalQueryMethod<R = any> = (log: Logger, connection: ConnectionPoolClient, clientConfiguration: ClientConfiguration, slonikSql: QuerySqlToken, uid?: QueryId) => R; | ||
@@ -235,0 +235,0 @@ export type InternalStreamFunction = <T>(log: Logger, connection: ConnectionPoolClient, clientConfiguration: ClientConfiguration, slonikSql: QuerySqlToken, streamHandler: StreamHandler<T>, uid?: QueryId) => Promise<StreamResult>; |
@@ -8,4 +8,4 @@ { | ||
"dependencies": { | ||
"@slonik/errors": "^43.0.2", | ||
"@slonik/sql-tag": "^43.0.2", | ||
"@slonik/errors": "^43.0.3", | ||
"@slonik/sql-tag": "^43.0.3", | ||
"@types/pg": "^8.11.6", | ||
@@ -90,3 +90,3 @@ "get-stack-trace": "^3.1.1", | ||
"types": "./dist/index.d.ts", | ||
"version": "43.0.2" | ||
"version": "43.0.3" | ||
} |
@@ -188,2 +188,9 @@ import { Logger } from '../Logger'; | ||
logger.warn( | ||
{ | ||
waitingClients: waitingClients.length, | ||
}, | ||
`connection pool full; client has been queued`, | ||
); | ||
return waitingClient.promise; | ||
@@ -190,0 +197,0 @@ } |
@@ -93,3 +93,2 @@ import { createSqlTag } from '@slonik/sql-tag'; | ||
type SerializableValue, | ||
type SqlFragment, | ||
type SqlTag, | ||
@@ -96,0 +95,0 @@ type SqlToken, |
@@ -10,3 +10,3 @@ import { type ConnectionPoolClient } from './factories/createConnectionPool'; | ||
type QuerySqlToken, | ||
type SqlFragment, | ||
type SqlFragmentToken, | ||
type SqlToken, | ||
@@ -296,3 +296,6 @@ } from '@slonik/sql-tag'; | ||
export type ValueExpression = PrimitiveValueExpression | SqlFragment | SqlToken; | ||
export type ValueExpression = | ||
| PrimitiveValueExpression | ||
| SqlFragmentToken | ||
| SqlToken; | ||
@@ -299,0 +302,0 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
734329
14527
Updated@slonik/errors@^43.0.3
Updated@slonik/sql-tag@^43.0.3