hysteria-orm 12.0.1 → 12.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +20 -20
- package/lib/cli.js.map +1 -1
- package/lib/index.cjs +9 -9
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +19 -0
- package/lib/index.d.ts +19 -0
- package/lib/index.js +9 -9
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.d.cts
CHANGED
|
@@ -3329,6 +3329,19 @@ declare class SqlDataSource<D extends SqlDataSourceType = SqlDataSourceType, T e
|
|
|
3329
3329
|
* @private
|
|
3330
3330
|
*/
|
|
3331
3331
|
sqlConnection: GetConnectionReturnType<D> | null;
|
|
3332
|
+
/**
|
|
3333
|
+
* @description Connection reserved for an advisory lock. `pg_try_advisory_lock`
|
|
3334
|
+
* is session-scoped, so acquire and release must run on one backend; the pool
|
|
3335
|
+
* may otherwise serve them on different sessions and the lock leaks.
|
|
3336
|
+
* @private
|
|
3337
|
+
*/
|
|
3338
|
+
private lockConnection;
|
|
3339
|
+
/**
|
|
3340
|
+
* @description Lock key -> numeric id, so releaseLock unlocks the id that
|
|
3341
|
+
* acquireLock actually locked.
|
|
3342
|
+
* @private
|
|
3343
|
+
*/
|
|
3344
|
+
private lockKeyToId;
|
|
3332
3345
|
/**
|
|
3333
3346
|
* @description The resolved execution driver for this instance (npm driver
|
|
3334
3347
|
* under node, native bun under bun unless overridden via `driver`/`jsEnvironment`)
|
|
@@ -3819,6 +3832,12 @@ declare class SqlDataSource<D extends SqlDataSourceType = SqlDataSourceType, T e
|
|
|
3819
3832
|
* @returns true if lock was released, false otherwise
|
|
3820
3833
|
*/
|
|
3821
3834
|
releaseLock(lockKey?: string): Promise<boolean>;
|
|
3835
|
+
/**
|
|
3836
|
+
* @description Returns the dedicated advisory-lock session, reserving it on
|
|
3837
|
+
* first use. Advisory locks are session-scoped, so all acquire/release calls
|
|
3838
|
+
* must share one backend.
|
|
3839
|
+
*/
|
|
3840
|
+
private getLockConnection;
|
|
3822
3841
|
/**
|
|
3823
3842
|
* @description Converts a string to a numeric lock ID for databases that require it
|
|
3824
3843
|
*/
|
package/lib/index.d.ts
CHANGED
|
@@ -3329,6 +3329,19 @@ declare class SqlDataSource<D extends SqlDataSourceType = SqlDataSourceType, T e
|
|
|
3329
3329
|
* @private
|
|
3330
3330
|
*/
|
|
3331
3331
|
sqlConnection: GetConnectionReturnType<D> | null;
|
|
3332
|
+
/**
|
|
3333
|
+
* @description Connection reserved for an advisory lock. `pg_try_advisory_lock`
|
|
3334
|
+
* is session-scoped, so acquire and release must run on one backend; the pool
|
|
3335
|
+
* may otherwise serve them on different sessions and the lock leaks.
|
|
3336
|
+
* @private
|
|
3337
|
+
*/
|
|
3338
|
+
private lockConnection;
|
|
3339
|
+
/**
|
|
3340
|
+
* @description Lock key -> numeric id, so releaseLock unlocks the id that
|
|
3341
|
+
* acquireLock actually locked.
|
|
3342
|
+
* @private
|
|
3343
|
+
*/
|
|
3344
|
+
private lockKeyToId;
|
|
3332
3345
|
/**
|
|
3333
3346
|
* @description The resolved execution driver for this instance (npm driver
|
|
3334
3347
|
* under node, native bun under bun unless overridden via `driver`/`jsEnvironment`)
|
|
@@ -3819,6 +3832,12 @@ declare class SqlDataSource<D extends SqlDataSourceType = SqlDataSourceType, T e
|
|
|
3819
3832
|
* @returns true if lock was released, false otherwise
|
|
3820
3833
|
*/
|
|
3821
3834
|
releaseLock(lockKey?: string): Promise<boolean>;
|
|
3835
|
+
/**
|
|
3836
|
+
* @description Returns the dedicated advisory-lock session, reserving it on
|
|
3837
|
+
* first use. Advisory locks are session-scoped, so all acquire/release calls
|
|
3838
|
+
* must share one backend.
|
|
3839
|
+
*/
|
|
3840
|
+
private getLockConnection;
|
|
3822
3841
|
/**
|
|
3823
3842
|
* @description Converts a string to a numeric lock ID for databases that require it
|
|
3824
3843
|
*/
|