@makaio/storage-pg 1.0.0-dev-1795446229073 → 1.0.0-dev-1795548607801
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/dist/client.d.ts +5 -11
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +357 -5500
- package/dist/pg-signal-client.d.ts +108 -0
- package/dist/signal-listener.d.ts +56 -0
- package/drizzle-postgres/0036_journal-core.sql +51 -0
- package/drizzle-postgres/meta/_journal.json +7 -0
- package/package.json +1 -1
- package/dist/execution-attempt-cancellation-read.d.ts +0 -13
- package/dist/execution-attempt-control.d.ts +0 -30
- package/dist/execution-attempt-core.d.ts +0 -33
- package/dist/execution-attempt-provider-claim.d.ts +0 -15
- package/dist/execution-attempt-provider.d.ts +0 -27
- package/dist/execution-attempt-repository.d.ts +0 -13
- package/dist/execution-attempt-rows.d.ts +0 -42
- package/dist/execution-attempt-runtime.d.ts +0 -29
- package/dist/execution-attempt-transaction.d.ts +0 -79
- package/dist/execution-attempt-types.d.ts +0 -164
package/dist/client.d.ts
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import type { DatabaseClient, PostgresClientOptions } from '@makaio/framework/storage/drizzle/client';
|
|
2
2
|
import { type PostgresPoolLike } from './raw-sql.js';
|
|
3
|
-
|
|
4
|
-
interface PgModule {
|
|
5
|
-
default: {
|
|
6
|
-
Pool: new (config: {
|
|
7
|
-
connectionString: string;
|
|
8
|
-
max: number;
|
|
9
|
-
}) => PostgresPoolLike;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
3
|
+
import type { PostgresDriverModule } from './pg-signal-client.js';
|
|
12
4
|
/** Structural surface of the `drizzle-orm/node-postgres` module used by {@link createNodePgClient}. */
|
|
13
5
|
interface NodePgDrizzleModule {
|
|
14
6
|
drizzle: (pool: PostgresPoolLike) => object;
|
|
@@ -21,8 +13,10 @@ interface NodePgDrizzleModule {
|
|
|
21
13
|
* path without mocking the module system.
|
|
22
14
|
*/
|
|
23
15
|
export interface NodePgDriverLoaders {
|
|
24
|
-
/** Loads the `pg` module. */
|
|
25
|
-
readonly loadPg: () => Promise<
|
|
16
|
+
/** Loads the `pg` module. Typed via the shared {@link PostgresDriverModule}, which covers both the writing pool and the dedicated signal-listener connection constructed from it. */
|
|
17
|
+
readonly loadPg: () => Promise<{
|
|
18
|
+
default: PostgresDriverModule;
|
|
19
|
+
}>;
|
|
26
20
|
/** Loads the `drizzle-orm/node-postgres` module. */
|
|
27
21
|
readonly loadDrizzlePg: () => Promise<NodePgDrizzleModule>;
|
|
28
22
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
export { postgresStorageEngine } from './engine.js';
|
|
15
15
|
export { isPostgresDuplicateObjectError, isPostgresUniqueViolationError } from './errors.js';
|
|
16
16
|
export { postgresFtsSearchStrategy } from './fts-strategy.js';
|
|
17
|
-
export { createPostgresExecutionAttemptRepository } from './execution-attempt-repository.js';
|
|
18
17
|
export { buildPostgresLedgerDdl, migrationAdvisoryLockKey, POSTGRES_MIGRATION_BEGIN } from './migrations.js';
|
|
19
18
|
export { postgresTransactionLockExpressions, postgresTransactionLockKey, postgresTransactionLocks, } from './transaction-locks.js';
|
|
20
19
|
/**
|