@event-driven-io/pongo 0.17.0-beta.34 → 0.17.0-beta.36
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/cli.cjs +311 -494
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.d.cts +4 -4
- package/dist/cli.d.ts +4 -3
- package/dist/cli.js +279 -494
- package/dist/cli.js.map +1 -1
- package/dist/cloudflare.cjs +36 -48
- package/dist/cloudflare.cjs.map +1 -1
- package/dist/cloudflare.d.cts +7 -7
- package/dist/cloudflare.d.ts +7 -7
- package/dist/cloudflare.js +29 -47
- package/dist/cloudflare.js.map +1 -1
- package/dist/core-CwxxuUAn.cjs +1590 -0
- package/dist/core-CwxxuUAn.cjs.map +1 -0
- package/dist/core-D_iZiiYe.js +1308 -0
- package/dist/core-D_iZiiYe.js.map +1 -0
- package/dist/core-DwoTLYbR.cjs +319 -0
- package/dist/core-DwoTLYbR.cjs.map +1 -0
- package/dist/core-fsJmsQDa.js +307 -0
- package/dist/core-fsJmsQDa.js.map +1 -0
- package/dist/index-DMq6F3x9.d.ts +705 -0
- package/dist/index-Du_IHXAj.d.ts +10 -0
- package/dist/index-ZKOB86ub.d.cts +10 -0
- package/dist/index-qeC-p0Tq.d.cts +705 -0
- package/dist/index.cjs +61 -118
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -130
- package/dist/index.d.ts +11 -130
- package/dist/index.js +14 -119
- package/dist/index.js.map +1 -1
- package/dist/pg.cjs +214 -320
- package/dist/pg.cjs.map +1 -1
- package/dist/pg.d.cts +24 -22
- package/dist/pg.d.ts +24 -22
- package/dist/pg.js +209 -321
- package/dist/pg.js.map +1 -1
- package/dist/shim.cjs +281 -367
- package/dist/shim.cjs.map +1 -1
- package/dist/shim.d.cts +140 -137
- package/dist/shim.d.ts +140 -137
- package/dist/shim.js +275 -366
- package/dist/shim.js.map +1 -1
- package/dist/sqlite3.cjs +41 -56
- package/dist/sqlite3.cjs.map +1 -1
- package/dist/sqlite3.d.cts +9 -9
- package/dist/sqlite3.d.ts +9 -9
- package/dist/sqlite3.js +35 -56
- package/dist/sqlite3.js.map +1 -1
- package/package.json +15 -15
- package/dist/chunk-OJVG4KXA.js +0 -399
- package/dist/chunk-OJVG4KXA.js.map +0 -1
- package/dist/chunk-TYTEQJBC.cjs +0 -1583
- package/dist/chunk-TYTEQJBC.cjs.map +0 -1
- package/dist/chunk-U4NNEXNH.js +0 -1583
- package/dist/chunk-U4NNEXNH.js.map +0 -1
- package/dist/chunk-UP6HTRMM.cjs +0 -399
- package/dist/chunk-UP6HTRMM.cjs.map +0 -1
- package/dist/index-DHszkVjP.d.ts +0 -8
- package/dist/index-DLDCIBgH.d.cts +0 -8
- package/dist/pongoTransactionCache-BsigBOq1.d.cts +0 -556
- package/dist/pongoTransactionCache-BsigBOq1.d.ts +0 -556
|
@@ -1,556 +0,0 @@
|
|
|
1
|
-
import { JSONSerializer, SQL, SchemaComponent, DatabaseDriverType, SchemaComponentOptions, JSONSerializationOptions, MigrationStyle, WithDatabaseTransactionFactory, AnyConnection, DatabaseTransaction, SQLExecutor, RunSQLMigrationsResult, QueryResultRow, QueryResult, SQLQueryOptions, SQLCommandOptions } from '@event-driven-io/dumbo';
|
|
2
|
-
import { LRUCache } from 'lru-cache';
|
|
3
|
-
|
|
4
|
-
type DocumentCommandHandlerOptions<T extends PongoDocument> = {
|
|
5
|
-
collectionName: string;
|
|
6
|
-
serializer: JSONSerializer;
|
|
7
|
-
errors?: {
|
|
8
|
-
throwOnOperationFailures?: boolean;
|
|
9
|
-
} | undefined;
|
|
10
|
-
storage: {
|
|
11
|
-
ensureCollectionCreated: (options?: CollectionOperationOptions) => Promise<unknown>;
|
|
12
|
-
fetchByIds: (ids: string[], options?: CollectionOperationOptions) => Promise<(WithIdAndVersion<T> | null)[]>;
|
|
13
|
-
insertMany: (docs: OptionalUnlessRequiredIdAndVersion<T>[], options?: CollectionOperationOptions) => Promise<PongoInsertManyResult>;
|
|
14
|
-
replaceMany: (docs: Array<WithIdAndVersion<T>>, options?: CollectionOperationOptions) => Promise<PongoReplaceManyResult>;
|
|
15
|
-
deleteManyByIds: (ids: Array<{
|
|
16
|
-
_id: string;
|
|
17
|
-
_version?: bigint;
|
|
18
|
-
}>, options?: CollectionOperationOptions) => Promise<PongoDeleteResult & {
|
|
19
|
-
deletedIds: Set<string>;
|
|
20
|
-
}>;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
type DocumentCommandHandlerInput = {
|
|
24
|
-
_id: string;
|
|
25
|
-
expectedVersion?: ExpectedDocumentVersion;
|
|
26
|
-
};
|
|
27
|
-
declare function DocumentCommandHandler<T extends PongoDocument>(deps: DocumentCommandHandlerOptions<T>): {
|
|
28
|
-
(id: string | DocumentCommandHandlerInput, handler: DocumentHandler<T>, options?: HandleOptions): Promise<PongoHandleResult<T>>;
|
|
29
|
-
(ids: string[] | DocumentCommandHandlerInput[], handler: DocumentHandler<T>, options?: HandleOptions & BatchHandleOptions): Promise<PongoHandleResult<T>[]>;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
type PongoCollectionSQLBuilder = {
|
|
33
|
-
createCollection: () => SQL;
|
|
34
|
-
insertOne: <T>(document: OptionalUnlessRequiredIdAndVersion<T>) => SQL;
|
|
35
|
-
insertMany: <T>(documents: OptionalUnlessRequiredIdAndVersion<T>[]) => SQL;
|
|
36
|
-
updateOne: <T>(filter: PongoFilter<T> | SQL, update: PongoUpdate<T> | SQL, options?: UpdateOneOptions) => SQL;
|
|
37
|
-
replaceOne: <T>(filter: PongoFilter<T> | SQL, document: WithoutId<T>, options?: ReplaceOneOptions) => SQL;
|
|
38
|
-
updateMany: <T>(filter: PongoFilter<T> | SQL, update: PongoUpdate<T> | SQL) => SQL;
|
|
39
|
-
deleteOne: <T>(filter: PongoFilter<T> | SQL, options?: DeleteOneOptions) => SQL;
|
|
40
|
-
deleteMany: <T>(filter: PongoFilter<T> | SQL) => SQL;
|
|
41
|
-
replaceMany: <T>(documents: Array<WithIdAndVersion<T> | WithId<T>>) => SQL;
|
|
42
|
-
deleteManyByIds: (ids: Array<{
|
|
43
|
-
_id: string;
|
|
44
|
-
_version?: bigint;
|
|
45
|
-
}>) => SQL;
|
|
46
|
-
findOne: <T>(filter: PongoFilter<T> | SQL) => SQL;
|
|
47
|
-
find: <T>(filter: PongoFilter<T> | SQL, options?: FindOptions) => SQL;
|
|
48
|
-
countDocuments: <T>(filter: PongoFilter<T> | SQL) => SQL;
|
|
49
|
-
rename: (newName: string) => SQL;
|
|
50
|
-
drop: () => SQL;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
type PongoCollectionURNType = 'sc:pongo:collection';
|
|
54
|
-
type PongoCollectionURN = `${PongoCollectionURNType}:${string}`;
|
|
55
|
-
type PongoCollectionSchemaComponentOptions<DriverType extends DatabaseDriverType = DatabaseDriverType> = Readonly<{
|
|
56
|
-
driverType: DriverType;
|
|
57
|
-
definition: PongoCollectionSchema;
|
|
58
|
-
migrationsOrSchemaComponents: SchemaComponentOptions;
|
|
59
|
-
sqlBuilder: PongoCollectionSQLBuilder;
|
|
60
|
-
}>;
|
|
61
|
-
type PongoCollectionSchemaComponent = SchemaComponent<PongoCollectionURN> & {
|
|
62
|
-
collectionName: string;
|
|
63
|
-
definition: PongoCollectionSchema;
|
|
64
|
-
sqlBuilder: PongoCollectionSQLBuilder;
|
|
65
|
-
};
|
|
66
|
-
declare const PongoCollectionSchemaComponent: <DriverType extends DatabaseDriverType = DatabaseDriverType>({ definition, migrationsOrSchemaComponents, sqlBuilder, }: PongoCollectionSchemaComponentOptions<DriverType>) => PongoCollectionSchemaComponent;
|
|
67
|
-
|
|
68
|
-
interface PongoCollectionSchema<T extends PongoDocument = PongoDocument> {
|
|
69
|
-
name: string;
|
|
70
|
-
}
|
|
71
|
-
interface PongoDbSchema<T extends Record<string, PongoCollectionSchema> = Record<string, PongoCollectionSchema>> {
|
|
72
|
-
name?: string;
|
|
73
|
-
collections: T;
|
|
74
|
-
}
|
|
75
|
-
interface PongoClientSchema<T extends Record<string, PongoDbSchema> = Record<string, PongoDbSchema>> {
|
|
76
|
-
dbs: T;
|
|
77
|
-
}
|
|
78
|
-
type CollectionsMap<T extends Record<string, PongoCollectionSchema>> = {
|
|
79
|
-
[K in keyof T]: PongoCollection<T[K] extends PongoCollectionSchema<infer U> ? U : PongoDocument>;
|
|
80
|
-
};
|
|
81
|
-
type PongoDbWithSchema<T extends Record<string, PongoCollectionSchema>, DriverType extends DatabaseDriverType = DatabaseDriverType> = CollectionsMap<T> & PongoDb<DriverType>;
|
|
82
|
-
type DBsMap<T extends Record<string, PongoDbSchema>, DriverType extends DatabaseDriverType = DatabaseDriverType, Database extends PongoDb<DriverType> = PongoDb<DriverType>> = {
|
|
83
|
-
[K in keyof T]: CollectionsMap<T[K]['collections']> & Database;
|
|
84
|
-
};
|
|
85
|
-
type PongoClientWithSchema<T extends PongoClientSchema, DriverType extends DatabaseDriverType = DatabaseDriverType, Database extends PongoDb<DriverType> = PongoDb<DriverType>> = DBsMap<T['dbs'], DriverType, Database> & PongoClient<DriverType, Database>;
|
|
86
|
-
declare function pongoDbSchema<T extends Record<string, PongoCollectionSchema>>(collections: T): PongoDbSchema<T>;
|
|
87
|
-
declare function pongoDbSchema<T extends Record<string, PongoCollectionSchema>>(name: string, collections: T): PongoDbSchema<T>;
|
|
88
|
-
declare namespace pongoDbSchema {
|
|
89
|
-
var from: (databaseName: string | undefined, collectionNames: string[]) => PongoDbSchema;
|
|
90
|
-
}
|
|
91
|
-
declare const pongoSchema: {
|
|
92
|
-
client: <T extends Record<string, PongoDbSchema>>(dbs: T) => PongoClientSchema<T>;
|
|
93
|
-
db: typeof pongoDbSchema;
|
|
94
|
-
collection: {
|
|
95
|
-
<T extends PongoDocument>(name: string): PongoCollectionSchema<T>;
|
|
96
|
-
from(collectionNames: string[]): Record<string, PongoCollectionSchema>;
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
declare const proxyPongoDbWithSchema: <Collections extends Record<string, PongoCollectionSchema>, DriverType extends DatabaseDriverType = DatabaseDriverType, Database extends PongoDb<DriverType> = PongoDb<DriverType>>(pongoDb: Database, dbSchema: PongoDbSchema<Collections>, collections: Map<string, PongoCollection<Document>>) => PongoDbWithSchema<Collections, DriverType> & Database;
|
|
100
|
-
declare const proxyClientWithSchema: <TypedClientSchema extends PongoClientSchema, DriverType extends DatabaseDriverType = DatabaseDriverType, Database extends PongoDb<DriverType> = PongoDb<DriverType>>(client: PongoClient<DriverType, Database>, schema: TypedClientSchema | undefined) => PongoClientWithSchema<TypedClientSchema, DriverType, Database>;
|
|
101
|
-
type PongoCollectionSchemaMetadata = {
|
|
102
|
-
name: string;
|
|
103
|
-
};
|
|
104
|
-
type PongoDbSchemaMetadata = {
|
|
105
|
-
name?: string | undefined;
|
|
106
|
-
collections: PongoCollectionSchemaMetadata[];
|
|
107
|
-
};
|
|
108
|
-
type PongoClientSchemaMetadata = {
|
|
109
|
-
databases: PongoDbSchemaMetadata[];
|
|
110
|
-
database: (name?: string) => PongoDbSchemaMetadata | undefined;
|
|
111
|
-
};
|
|
112
|
-
declare const toDbSchemaMetadata: <TypedDbSchema extends PongoDbSchema>(schema: TypedDbSchema) => PongoDbSchemaMetadata;
|
|
113
|
-
declare const toClientSchemaMetadata: <TypedClientSchema extends PongoClientSchema>(schema: TypedClientSchema) => PongoClientSchemaMetadata;
|
|
114
|
-
interface PongoSchemaConfig<TypedClientSchema extends PongoClientSchema = PongoClientSchema> {
|
|
115
|
-
schema: TypedClientSchema;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
type PongoDatabaseURNType = 'sc:dumbo:database';
|
|
119
|
-
type PongoDatabaseURN = `${PongoDatabaseURNType}:${string}`;
|
|
120
|
-
type PongoDatabaseSchemaComponentOptions<DriverType extends DatabaseDriverType = DatabaseDriverType, T extends Record<string, PongoCollectionSchema> = Record<string, PongoCollectionSchema>> = Readonly<{
|
|
121
|
-
driverType: DriverType;
|
|
122
|
-
definition: PongoDbSchema<T>;
|
|
123
|
-
collectionFactory: <T extends PongoDocument = PongoDocument>(schema: PongoCollectionSchema<T>) => PongoCollectionSchemaComponent;
|
|
124
|
-
}>;
|
|
125
|
-
type PongoDatabaseSchemaComponent<DriverType extends DatabaseDriverType = DatabaseDriverType, T extends Record<string, PongoCollectionSchema> = Record<string, PongoCollectionSchema>> = SchemaComponent<PongoDatabaseURN> & {
|
|
126
|
-
definition: PongoDbSchema<T>;
|
|
127
|
-
collections: ReadonlyArray<PongoCollectionSchemaComponent>;
|
|
128
|
-
collection: <T extends PongoDocument = PongoDocument>(schema: PongoCollectionSchema<T>) => PongoCollectionSchemaComponent;
|
|
129
|
-
};
|
|
130
|
-
declare const PongoDatabaseSchemaComponent: <DriverType extends DatabaseDriverType = DatabaseDriverType>({ definition, collectionFactory, }: PongoDatabaseSchemaComponentOptions<DriverType>) => PongoDatabaseSchemaComponent;
|
|
131
|
-
type PongoDatabaseSQLBuilder<DriverType extends DatabaseDriverType = DatabaseDriverType> = {
|
|
132
|
-
driverType: DriverType;
|
|
133
|
-
collection: PongoCollectionSQLBuilder;
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
type PongoDriverOptions<ConnectionOptions = unknown> = {
|
|
137
|
-
connectionOptions?: ConnectionOptions | undefined;
|
|
138
|
-
} & JSONSerializationOptions;
|
|
139
|
-
type AnyPongoDriverOptions = PongoDriverOptions<any>;
|
|
140
|
-
type PongoDatabaseFactoryOptions<CollectionsSchema extends Record<string, PongoCollectionSchema> = Record<string, PongoCollectionSchema>, DriverOptions extends AnyPongoDriverOptions = AnyPongoDriverOptions> = {
|
|
141
|
-
databaseName?: string | undefined;
|
|
142
|
-
schema?: {
|
|
143
|
-
autoMigration?: MigrationStyle;
|
|
144
|
-
definition?: PongoDbSchema<CollectionsSchema>;
|
|
145
|
-
} | undefined;
|
|
146
|
-
serializer: JSONSerializer;
|
|
147
|
-
errors?: {
|
|
148
|
-
throwOnOperationFailures?: boolean;
|
|
149
|
-
} | undefined;
|
|
150
|
-
cache?: CacheConfig | 'disabled' | PongoCache | undefined;
|
|
151
|
-
} & DriverOptions;
|
|
152
|
-
interface PongoDriver<Database extends AnyPongoDb = AnyPongoDb, DriverOptions extends AnyPongoDriverOptions = AnyPongoDriverOptions> {
|
|
153
|
-
driverType: Database['driverType'];
|
|
154
|
-
databaseFactory<CollectionsSchema extends Record<string, PongoCollectionSchema> = Record<string, PongoCollectionSchema>>(options: PongoDatabaseFactoryOptions<CollectionsSchema, DriverOptions>): Database & PongoDb<Database['driverType']>;
|
|
155
|
-
}
|
|
156
|
-
type AnyPongoDriver = PongoDriver<AnyPongoDb, AnyPongoDriverOptions>;
|
|
157
|
-
type ExtractPongoDriverOptions<DatabaseDriver> = DatabaseDriver extends PongoDriver<any, infer O> ? O : never;
|
|
158
|
-
type ExtractPongoDatabaseTypeFromDriver<DatabaseDriver> = DatabaseDriver extends PongoDriver<infer D, any> ? D : never;
|
|
159
|
-
declare const PongoDriverRegistry: () => {
|
|
160
|
-
register: <Database extends AnyPongoDb = AnyPongoDb>(driverType: Database["driverType"], driver: PongoDriver<Database> | (() => Promise<PongoDriver<Database>>)) => void;
|
|
161
|
-
tryResolve: <Driver extends AnyPongoDriver = AnyPongoDriver>(driverType: Driver["driverType"]) => Promise<Driver | null>;
|
|
162
|
-
tryGet: <Driver extends AnyPongoDriver = AnyPongoDriver>(driverType: Driver["driverType"]) => Driver | null;
|
|
163
|
-
has: (driverType: DatabaseDriverType) => boolean;
|
|
164
|
-
readonly databaseDriverTypes: DatabaseDriverType[];
|
|
165
|
-
};
|
|
166
|
-
declare global {
|
|
167
|
-
var pongoDriverRegistry: ReturnType<typeof PongoDriverRegistry>;
|
|
168
|
-
}
|
|
169
|
-
declare const pongoDriverRegistry: {
|
|
170
|
-
register: <Database extends AnyPongoDb = AnyPongoDb>(driverType: Database["driverType"], driver: PongoDriver<Database> | (() => Promise<PongoDriver<Database>>)) => void;
|
|
171
|
-
tryResolve: <Driver extends AnyPongoDriver = AnyPongoDriver>(driverType: Driver["driverType"]) => Promise<Driver | null>;
|
|
172
|
-
tryGet: <Driver extends AnyPongoDriver = AnyPongoDriver>(driverType: Driver["driverType"]) => Driver | null;
|
|
173
|
-
has: (driverType: DatabaseDriverType) => boolean;
|
|
174
|
-
readonly databaseDriverTypes: DatabaseDriverType[];
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
interface PongoClient<DriverType extends DatabaseDriverType = DatabaseDriverType, Database extends PongoDb<DriverType> = PongoDb<DriverType>> {
|
|
178
|
-
driverType: DriverType;
|
|
179
|
-
connect(): Promise<this>;
|
|
180
|
-
close(): Promise<void>;
|
|
181
|
-
db(dbName?: string, options?: PongoDbOptions): Database;
|
|
182
|
-
startSession(): PongoSession<DriverType>;
|
|
183
|
-
withSession<T = unknown>(callback: (session: PongoSession<DriverType>) => Promise<T>): Promise<T>;
|
|
184
|
-
}
|
|
185
|
-
type PongoClientOptions<DatabaseDriver extends AnyPongoDriver = AnyPongoDriver, TypedClientSchema extends PongoClientSchema = PongoClientSchema> = ExtractPongoDriverOptions<DatabaseDriver> extends infer Options ? Options extends unknown ? {
|
|
186
|
-
driver: DatabaseDriver;
|
|
187
|
-
schema?: {
|
|
188
|
-
autoMigration?: MigrationStyle;
|
|
189
|
-
definition?: TypedClientSchema;
|
|
190
|
-
} | undefined;
|
|
191
|
-
errors?: {
|
|
192
|
-
throwOnOperationFailures?: boolean;
|
|
193
|
-
} | undefined;
|
|
194
|
-
cache?: CacheConfig | PongoCache | undefined;
|
|
195
|
-
} & JSONSerializationOptions & Omit<Options, 'driver'> : never : never;
|
|
196
|
-
declare interface PongoTransactionOptions {
|
|
197
|
-
get snapshotEnabled(): boolean;
|
|
198
|
-
maxCommitTimeMS?: number;
|
|
199
|
-
}
|
|
200
|
-
interface PongoDbTransaction<DriverType extends DatabaseDriverType = DatabaseDriverType, Database extends PongoDb<DriverType> = PongoDb<DriverType>> {
|
|
201
|
-
get databaseName(): string | null;
|
|
202
|
-
options: PongoTransactionOptions;
|
|
203
|
-
enlistDatabase: (database: Database) => Promise<DatabaseTransaction<AnyConnection>>;
|
|
204
|
-
commit: () => Promise<void>;
|
|
205
|
-
rollback: (error?: unknown) => Promise<void>;
|
|
206
|
-
get cache(): PongoTransactionCache | null;
|
|
207
|
-
get sqlExecutor(): SQLExecutor;
|
|
208
|
-
get isStarting(): boolean;
|
|
209
|
-
get isActive(): boolean;
|
|
210
|
-
get isCommitted(): boolean;
|
|
211
|
-
}
|
|
212
|
-
interface PongoSession<DriverType extends DatabaseDriverType = DatabaseDriverType> {
|
|
213
|
-
hasEnded: boolean;
|
|
214
|
-
explicit: boolean;
|
|
215
|
-
defaultTransactionOptions: PongoTransactionOptions;
|
|
216
|
-
transaction: PongoDbTransaction<DriverType> | null;
|
|
217
|
-
get snapshotEnabled(): boolean;
|
|
218
|
-
endSession(): Promise<void>;
|
|
219
|
-
incrementTransactionNumber(): void;
|
|
220
|
-
inTransaction(): boolean;
|
|
221
|
-
startTransaction(options?: PongoTransactionOptions): void;
|
|
222
|
-
commitTransaction(): Promise<void>;
|
|
223
|
-
abortTransaction(): Promise<void>;
|
|
224
|
-
withTransaction<T = unknown>(fn: (session: PongoSession<DriverType>) => Promise<T>, options?: PongoTransactionOptions): Promise<T>;
|
|
225
|
-
}
|
|
226
|
-
type PongoDBCollectionOptions<T extends PongoDocument, Payload extends PongoDocument = T> = {
|
|
227
|
-
schema?: {
|
|
228
|
-
versioning?: {
|
|
229
|
-
upcast?: (document: Payload) => T;
|
|
230
|
-
downcast?: (document: T) => Payload;
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
|
-
errors?: {
|
|
234
|
-
throwOnOperationFailures?: boolean;
|
|
235
|
-
};
|
|
236
|
-
cache?: CacheConfig | 'disabled' | PongoCache;
|
|
237
|
-
};
|
|
238
|
-
type PongoDbOptions = {
|
|
239
|
-
cache?: CacheConfig | PongoCache;
|
|
240
|
-
};
|
|
241
|
-
interface PongoDb<DriverType extends DatabaseDriverType = DatabaseDriverType> extends WithDatabaseTransactionFactory<AnyConnection> {
|
|
242
|
-
driverType: DriverType;
|
|
243
|
-
databaseName: string;
|
|
244
|
-
connect(): Promise<void>;
|
|
245
|
-
close(): Promise<void>;
|
|
246
|
-
collection<T extends PongoDocument, Payload extends PongoDocument = T>(name: string, options?: PongoDBCollectionOptions<T, Payload>): PongoCollection<T>;
|
|
247
|
-
collections(): ReadonlyArray<PongoCollection<PongoDocument>>;
|
|
248
|
-
readonly schema: Readonly<{
|
|
249
|
-
component: PongoDatabaseSchemaComponent<DriverType>;
|
|
250
|
-
migrate(options?: PongoMigrationOptions): Promise<RunSQLMigrationsResult>;
|
|
251
|
-
}>;
|
|
252
|
-
sql: {
|
|
253
|
-
query<Result extends QueryResultRow = QueryResultRow>(sql: SQL, options?: CollectionOperationOptions & SQLQueryOptions): Promise<Result[]>;
|
|
254
|
-
command<Result extends QueryResultRow = QueryResultRow>(sql: SQL, options?: CollectionOperationOptions & SQLCommandOptions): Promise<QueryResult<Result>>;
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
type AnyPongoDb = PongoDb<DatabaseDriverType>;
|
|
258
|
-
type PongoMigrationOptions = {
|
|
259
|
-
dryRun?: boolean | undefined;
|
|
260
|
-
ignoreMigrationHashMismatch?: boolean | undefined;
|
|
261
|
-
migrationTimeoutMs?: number | undefined;
|
|
262
|
-
};
|
|
263
|
-
type CollectionOperationOptions = {
|
|
264
|
-
session?: PongoSession;
|
|
265
|
-
skipCache?: boolean;
|
|
266
|
-
};
|
|
267
|
-
type InsertOneOptions = {
|
|
268
|
-
expectedVersion?: Extract<ExpectedDocumentVersion, 'DOCUMENT_DOES_NOT_EXIST' | 'NO_CONCURRENCY_CHECK'>;
|
|
269
|
-
} & CollectionOperationOptions;
|
|
270
|
-
type InsertManyOptions = {
|
|
271
|
-
expectedVersion?: Extract<ExpectedDocumentVersion, 'DOCUMENT_DOES_NOT_EXIST' | 'NO_CONCURRENCY_CHECK'>;
|
|
272
|
-
} & CollectionOperationOptions;
|
|
273
|
-
type UpdateOneOptions = {
|
|
274
|
-
expectedVersion?: Exclude<ExpectedDocumentVersion, 'DOCUMENT_DOES_NOT_EXIST'>;
|
|
275
|
-
} & CollectionOperationOptions;
|
|
276
|
-
type UpdateManyOptions = {
|
|
277
|
-
expectedVersion?: Extract<ExpectedDocumentVersion, 'DOCUMENT_EXISTS' | 'NO_CONCURRENCY_CHECK'>;
|
|
278
|
-
} & CollectionOperationOptions;
|
|
279
|
-
type HandleOptions = CollectionOperationOptions;
|
|
280
|
-
type BatchHandleOptions = {
|
|
281
|
-
parallel?: boolean;
|
|
282
|
-
} & CollectionOperationOptions;
|
|
283
|
-
type ReplaceOneOptions = {
|
|
284
|
-
expectedVersion?: Exclude<ExpectedDocumentVersion, 'DOCUMENT_DOES_NOT_EXIST'>;
|
|
285
|
-
} & CollectionOperationOptions;
|
|
286
|
-
type DeleteOneOptions = {
|
|
287
|
-
expectedVersion?: Exclude<ExpectedDocumentVersion, 'DOCUMENT_DOES_NOT_EXIST'>;
|
|
288
|
-
} & CollectionOperationOptions;
|
|
289
|
-
type ReplaceManyOptions = CollectionOperationOptions;
|
|
290
|
-
type DeleteManyOptions = {
|
|
291
|
-
expectedVersion?: Extract<ExpectedDocumentVersion, 'DOCUMENT_EXISTS' | 'NO_CONCURRENCY_CHECK'>;
|
|
292
|
-
} & CollectionOperationOptions;
|
|
293
|
-
type FindOptions = {
|
|
294
|
-
limit?: number;
|
|
295
|
-
skip?: number;
|
|
296
|
-
} & CollectionOperationOptions;
|
|
297
|
-
interface PongoCollection<T extends PongoDocument> {
|
|
298
|
-
readonly dbName: string;
|
|
299
|
-
readonly collectionName: string;
|
|
300
|
-
createCollection(options?: CollectionOperationOptions): Promise<void>;
|
|
301
|
-
insertOne(document: OptionalUnlessRequiredId<T>, options?: InsertOneOptions): Promise<PongoInsertOneResult>;
|
|
302
|
-
insertMany(documents: OptionalUnlessRequiredId<T>[], options?: CollectionOperationOptions): Promise<PongoInsertManyResult>;
|
|
303
|
-
updateOne(filter: PongoFilter<T> | SQL, update: PongoUpdate<T> | SQL, options?: UpdateOneOptions): Promise<PongoUpdateResult>;
|
|
304
|
-
replaceOne(filter: PongoFilter<T> | SQL, document: WithoutId<T>, options?: ReplaceOneOptions): Promise<PongoUpdateResult>;
|
|
305
|
-
updateMany(filter: PongoFilter<T> | SQL, update: PongoUpdate<T> | SQL, options?: UpdateManyOptions): Promise<PongoUpdateManyResult>;
|
|
306
|
-
deleteOne(filter?: PongoFilter<T> | SQL, options?: DeleteOneOptions): Promise<PongoDeleteResult>;
|
|
307
|
-
deleteMany(filter?: PongoFilter<T> | SQL, options?: DeleteManyOptions): Promise<PongoDeleteResult>;
|
|
308
|
-
findOne(filter?: PongoFilter<T> | SQL, options?: CollectionOperationOptions): Promise<WithIdAndVersion<T> | null>;
|
|
309
|
-
find(filter?: PongoFilter<T> | SQL, options?: FindOptions): Promise<WithIdAndVersion<T>[]>;
|
|
310
|
-
findOneAndDelete(filter: PongoFilter<T> | SQL, options?: DeleteOneOptions): Promise<WithIdAndVersion<T> | null>;
|
|
311
|
-
findOneAndReplace(filter: PongoFilter<T> | SQL, replacement: WithoutId<T>, options?: ReplaceOneOptions): Promise<WithIdAndVersion<T> | null>;
|
|
312
|
-
findOneAndUpdate(filter: PongoFilter<T> | SQL, update: PongoUpdate<T> | SQL, options?: UpdateOneOptions): Promise<WithIdAndVersion<T> | null>;
|
|
313
|
-
countDocuments(filter?: PongoFilter<T> | SQL, options?: CollectionOperationOptions): Promise<number>;
|
|
314
|
-
drop(options?: CollectionOperationOptions): Promise<boolean>;
|
|
315
|
-
rename(newName: string, options?: CollectionOperationOptions): Promise<PongoCollection<T>>;
|
|
316
|
-
handle(id: string | DocumentCommandHandlerInput, handle: DocumentHandler<T>, options?: HandleOptions): Promise<PongoHandleResult<T>>;
|
|
317
|
-
handle(id: string[] | DocumentCommandHandlerInput[], handle: DocumentHandler<T>, options?: BatchHandleOptions): Promise<PongoHandleResult<T>[]>;
|
|
318
|
-
replaceMany(documents: Array<WithId<T> | WithIdAndVersion<T>>, options?: ReplaceManyOptions): Promise<PongoReplaceManyResult>;
|
|
319
|
-
readonly schema: Readonly<{
|
|
320
|
-
component: PongoCollectionSchemaComponent;
|
|
321
|
-
migrate(options?: PongoMigrationOptions): Promise<RunSQLMigrationsResult>;
|
|
322
|
-
}>;
|
|
323
|
-
close: () => MaybePromise<void>;
|
|
324
|
-
sql: {
|
|
325
|
-
query<Result extends QueryResultRow = QueryResultRow>(sql: SQL, options?: CollectionOperationOptions): Promise<Result[]>;
|
|
326
|
-
command<Result extends QueryResultRow = QueryResultRow>(sql: SQL, options?: CollectionOperationOptions): Promise<QueryResult<Result>>;
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
type ObjectId = string & {
|
|
330
|
-
__brandId: 'ObjectId';
|
|
331
|
-
};
|
|
332
|
-
declare const ObjectId: (value?: string) => string;
|
|
333
|
-
type HasId = {
|
|
334
|
-
_id: string;
|
|
335
|
-
};
|
|
336
|
-
declare type InferIdType<TSchema> = TSchema extends {
|
|
337
|
-
_id: infer IdType;
|
|
338
|
-
} ? Record<any, never> extends IdType ? never : IdType : TSchema extends {
|
|
339
|
-
_id?: infer IdType;
|
|
340
|
-
} ? unknown extends IdType ? ObjectId : IdType : ObjectId;
|
|
341
|
-
/** TypeScript Omit (Exclude to be specific) does not work for objects with an "any" indexed type, and breaks discriminated unions @public */
|
|
342
|
-
declare type EnhancedOmit<TRecordOrUnion, KeyUnion> = string extends keyof TRecordOrUnion ? TRecordOrUnion : TRecordOrUnion extends any ? Pick<TRecordOrUnion, Exclude<keyof TRecordOrUnion, KeyUnion>> : never;
|
|
343
|
-
declare type OptionalUnlessRequiredId<TSchema> = TSchema extends {
|
|
344
|
-
_id: string | ObjectId;
|
|
345
|
-
} ? TSchema : OptionalId<TSchema>;
|
|
346
|
-
declare type OptionalUnlessRequiredVersion<TSchema> = TSchema extends {
|
|
347
|
-
_version: bigint;
|
|
348
|
-
} ? TSchema : OptionalVersion<TSchema>;
|
|
349
|
-
declare type OptionalUnlessRequiredIdAndVersion<TSchema> = OptionalUnlessRequiredId<TSchema> & OptionalUnlessRequiredVersion<TSchema>;
|
|
350
|
-
declare type WithId<TSchema> = EnhancedOmit<TSchema, '_id'> & {
|
|
351
|
-
_id: string | ObjectId;
|
|
352
|
-
};
|
|
353
|
-
type WithoutId<T> = Omit<T, '_id'>;
|
|
354
|
-
declare type WithVersion<TSchema> = EnhancedOmit<TSchema, '_version'> & {
|
|
355
|
-
_version: bigint;
|
|
356
|
-
};
|
|
357
|
-
type WithoutVersion<T> = Omit<T, '_version'>;
|
|
358
|
-
type WithIdAndVersion<T> = WithId<T> & WithVersion<T>;
|
|
359
|
-
type WithoutIdAndVersion<T> = WithoutId<WithoutVersion<T>>;
|
|
360
|
-
/** @public */
|
|
361
|
-
declare type RegExpOrString<T> = T extends string ? RegExp | T : T;
|
|
362
|
-
declare interface Document {
|
|
363
|
-
[key: string]: any;
|
|
364
|
-
}
|
|
365
|
-
declare type OptionalId<TSchema> = EnhancedOmit<TSchema, '_id'> & {
|
|
366
|
-
_id?: string | ObjectId;
|
|
367
|
-
};
|
|
368
|
-
declare type OptionalVersion<TSchema> = EnhancedOmit<TSchema, '_version'> & {
|
|
369
|
-
_version?: bigint;
|
|
370
|
-
};
|
|
371
|
-
declare interface ObjectIdLike {
|
|
372
|
-
__id?: string | ObjectId;
|
|
373
|
-
}
|
|
374
|
-
declare type NonObjectIdLikeDocument = {
|
|
375
|
-
[key in keyof ObjectIdLike]?: never;
|
|
376
|
-
} & Document;
|
|
377
|
-
declare type AlternativeType<T> = T extends ReadonlyArray<infer U> ? T | RegExpOrString<U> : RegExpOrString<T>;
|
|
378
|
-
declare type Condition<T> = AlternativeType<T> | PongoFilterOperator<AlternativeType<T>>;
|
|
379
|
-
declare type PongoFilter<TSchema> = {
|
|
380
|
-
[P in keyof WithId<TSchema>]?: Condition<WithId<TSchema>[P]>;
|
|
381
|
-
} | HasId;
|
|
382
|
-
declare interface RootFilterOperators<TSchema> extends Document {
|
|
383
|
-
$and?: PongoFilter<TSchema>[];
|
|
384
|
-
$nor?: PongoFilter<TSchema>[];
|
|
385
|
-
$or?: PongoFilter<TSchema>[];
|
|
386
|
-
$text?: {
|
|
387
|
-
$search: string;
|
|
388
|
-
$language?: string;
|
|
389
|
-
$caseSensitive?: boolean;
|
|
390
|
-
$diacriticSensitive?: boolean;
|
|
391
|
-
};
|
|
392
|
-
$where?: string | ((this: TSchema) => boolean);
|
|
393
|
-
$comment?: string | Document;
|
|
394
|
-
}
|
|
395
|
-
declare interface PongoFilterOperator<TValue> extends NonObjectIdLikeDocument {
|
|
396
|
-
$eq?: TValue;
|
|
397
|
-
$gt?: TValue;
|
|
398
|
-
$gte?: TValue;
|
|
399
|
-
$lt?: TValue;
|
|
400
|
-
$lte?: TValue;
|
|
401
|
-
$ne?: TValue;
|
|
402
|
-
$in?: TValue[];
|
|
403
|
-
$nin?: TValue[];
|
|
404
|
-
}
|
|
405
|
-
type $set<T> = Partial<T>;
|
|
406
|
-
type $unset<T> = {
|
|
407
|
-
[P in keyof T]?: '';
|
|
408
|
-
};
|
|
409
|
-
type $inc<T> = {
|
|
410
|
-
[P in keyof T]?: number | bigint;
|
|
411
|
-
};
|
|
412
|
-
type $push<T> = {
|
|
413
|
-
[P in keyof T]?: T[P];
|
|
414
|
-
};
|
|
415
|
-
type ExpectedDocumentVersionGeneral = 'DOCUMENT_EXISTS' | 'DOCUMENT_DOES_NOT_EXIST' | 'NO_CONCURRENCY_CHECK';
|
|
416
|
-
type ExpectedDocumentVersionValue = bigint & {
|
|
417
|
-
__brand: 'sql';
|
|
418
|
-
};
|
|
419
|
-
type ExpectedDocumentVersion = (bigint & {
|
|
420
|
-
__brand: 'sql';
|
|
421
|
-
}) | bigint | ExpectedDocumentVersionGeneral;
|
|
422
|
-
declare const DOCUMENT_EXISTS: ExpectedDocumentVersionGeneral;
|
|
423
|
-
declare const DOCUMENT_DOES_NOT_EXIST: ExpectedDocumentVersionGeneral;
|
|
424
|
-
declare const NO_CONCURRENCY_CHECK: ExpectedDocumentVersionGeneral;
|
|
425
|
-
declare const isGeneralExpectedDocumentVersion: (version: ExpectedDocumentVersion) => version is ExpectedDocumentVersionGeneral;
|
|
426
|
-
declare const expectedVersionValue: (version: ExpectedDocumentVersion | undefined) => ExpectedDocumentVersionValue | null;
|
|
427
|
-
declare const expectedVersion: (version: number | bigint | string | undefined | null) => ExpectedDocumentVersion;
|
|
428
|
-
type PongoUpdate<T> = {
|
|
429
|
-
$set?: Partial<T>;
|
|
430
|
-
$unset?: $unset<T>;
|
|
431
|
-
$inc?: $inc<T>;
|
|
432
|
-
$push?: $push<T>;
|
|
433
|
-
};
|
|
434
|
-
type OperationResult = {
|
|
435
|
-
acknowledged: boolean;
|
|
436
|
-
successful: boolean;
|
|
437
|
-
assertSuccessful: (errorMessage?: string) => void;
|
|
438
|
-
};
|
|
439
|
-
declare const operationResult: <T extends OperationResult>(result: Omit<T, "assertSuccess" | "acknowledged" | "assertSuccessful">, options: {
|
|
440
|
-
operationName: string;
|
|
441
|
-
collectionName: string;
|
|
442
|
-
serializer: JSONSerializer;
|
|
443
|
-
errors?: {
|
|
444
|
-
throwOnOperationFailures?: boolean;
|
|
445
|
-
} | undefined;
|
|
446
|
-
}) => T;
|
|
447
|
-
interface PongoInsertOneResult extends OperationResult {
|
|
448
|
-
insertedId: string | null;
|
|
449
|
-
nextExpectedVersion: bigint;
|
|
450
|
-
}
|
|
451
|
-
interface PongoInsertManyResult extends OperationResult {
|
|
452
|
-
insertedIds: string[];
|
|
453
|
-
insertedCount: number;
|
|
454
|
-
}
|
|
455
|
-
interface PongoUpdateResult extends OperationResult {
|
|
456
|
-
matchedCount: number;
|
|
457
|
-
modifiedCount: number;
|
|
458
|
-
nextExpectedVersion: bigint;
|
|
459
|
-
}
|
|
460
|
-
interface PongoUpdateManyResult extends OperationResult {
|
|
461
|
-
matchedCount: number;
|
|
462
|
-
modifiedCount: number;
|
|
463
|
-
}
|
|
464
|
-
interface PongoDeleteResult extends OperationResult {
|
|
465
|
-
matchedCount: number;
|
|
466
|
-
deletedCount: number;
|
|
467
|
-
}
|
|
468
|
-
interface PongoDeleteManyResult extends OperationResult {
|
|
469
|
-
deletedCount: number;
|
|
470
|
-
}
|
|
471
|
-
interface PongoReplaceManyResult extends OperationResult {
|
|
472
|
-
modifiedCount: number;
|
|
473
|
-
matchedCount: number;
|
|
474
|
-
modifiedIds: string[];
|
|
475
|
-
conflictIds: string[];
|
|
476
|
-
nextExpectedVersions: Map<string, bigint>;
|
|
477
|
-
}
|
|
478
|
-
type PongoHandleResult<T> = (PongoInsertOneResult & {
|
|
479
|
-
document: T;
|
|
480
|
-
}) | (PongoUpdateResult & {
|
|
481
|
-
document: T;
|
|
482
|
-
}) | (PongoDeleteResult & {
|
|
483
|
-
document: null;
|
|
484
|
-
}) | (OperationResult & {
|
|
485
|
-
document: null;
|
|
486
|
-
});
|
|
487
|
-
type PongoDocument = Record<string, unknown>;
|
|
488
|
-
type DocumentHandler<T extends PongoDocument> = ((document: T | null) => T | null) | ((document: T | null) => Promise<T | null>);
|
|
489
|
-
|
|
490
|
-
type MaybePromise<T> = T | PromiseLike<T>;
|
|
491
|
-
|
|
492
|
-
type LRUCacheOptions = Omit<LRUCache.Options<string, {
|
|
493
|
-
doc: PongoDocument | null;
|
|
494
|
-
}, unknown>, 'max'> & {
|
|
495
|
-
max?: number;
|
|
496
|
-
};
|
|
497
|
-
declare const lruCache: (options?: LRUCacheOptions) => PongoCache;
|
|
498
|
-
|
|
499
|
-
type PongoDocumentCacheKey = `${string}:${string}:${string}`;
|
|
500
|
-
type PongoCacheSetEntry<Doc extends PongoDocument = PongoDocument> = {
|
|
501
|
-
key: PongoDocumentCacheKey;
|
|
502
|
-
value: Doc | null;
|
|
503
|
-
};
|
|
504
|
-
type PongoCacheType<T extends string = string> = `pongo:cache:${T}`;
|
|
505
|
-
interface PongoCache<T extends string = string> {
|
|
506
|
-
cacheType: PongoCacheType<T>;
|
|
507
|
-
get<Doc extends PongoDocument = PongoDocument>(key: PongoDocumentCacheKey): MaybePromise<Doc | null | undefined>;
|
|
508
|
-
getMany<Doc extends PongoDocument = PongoDocument>(keys: PongoDocumentCacheKey[]): MaybePromise<(Doc | null | undefined)[]>;
|
|
509
|
-
set<Doc extends PongoDocument = PongoDocument>(key: PongoDocumentCacheKey, value: Doc | null): MaybePromise<void>;
|
|
510
|
-
setMany(entries: PongoCacheSetEntry[]): MaybePromise<void>;
|
|
511
|
-
update<Doc extends PongoDocument = PongoDocument>(key: PongoDocumentCacheKey, updater: PongoUpdate<Doc>): MaybePromise<void>;
|
|
512
|
-
updateMany<Doc extends PongoDocument = PongoDocument>(keys: PongoDocumentCacheKey[], updater: PongoUpdate<Doc>): MaybePromise<void>;
|
|
513
|
-
delete(key: PongoDocumentCacheKey): MaybePromise<void>;
|
|
514
|
-
deleteMany(keys: PongoDocumentCacheKey[]): MaybePromise<void>;
|
|
515
|
-
clear(): MaybePromise<void>;
|
|
516
|
-
close(): MaybePromise<void>;
|
|
517
|
-
}
|
|
518
|
-
type CacheHooks = {
|
|
519
|
-
onHit?(key: PongoDocumentCacheKey): void;
|
|
520
|
-
onMiss?(key: PongoDocumentCacheKey): void;
|
|
521
|
-
onEvict?(key: PongoDocumentCacheKey): void;
|
|
522
|
-
onError?(error: unknown, operation: string): void;
|
|
523
|
-
};
|
|
524
|
-
type CacheType = 'in-memory' | 'identity-map';
|
|
525
|
-
type CacheSettings = ({
|
|
526
|
-
type: 'in-memory';
|
|
527
|
-
} & LRUCacheOptions) | {
|
|
528
|
-
type: 'identity-map';
|
|
529
|
-
};
|
|
530
|
-
type CacheConfig = CacheSettings | 'disabled';
|
|
531
|
-
type CacheOptions = {
|
|
532
|
-
skipCache?: boolean;
|
|
533
|
-
};
|
|
534
|
-
declare const pongoCache: (options?: CacheConfig | "disabled" | PongoCache | undefined) => PongoCache;
|
|
535
|
-
|
|
536
|
-
type PongoTransactionCacheOperationOptions = {
|
|
537
|
-
mainCache: PongoCache;
|
|
538
|
-
};
|
|
539
|
-
interface PongoTransactionCache<T extends string = string> {
|
|
540
|
-
type: PongoCacheType<T>;
|
|
541
|
-
get<Doc extends PongoDocument = PongoDocument>(key: PongoDocumentCacheKey): MaybePromise<Doc | null | undefined>;
|
|
542
|
-
set(key: PongoDocumentCacheKey, value: PongoDocument | null, options: PongoTransactionCacheOperationOptions): MaybePromise<void>;
|
|
543
|
-
update<Doc extends PongoDocument = PongoDocument>(key: PongoDocumentCacheKey, updater: PongoUpdate<Doc>, options: PongoTransactionCacheOperationOptions): MaybePromise<void>;
|
|
544
|
-
delete(key: PongoDocumentCacheKey, options: PongoTransactionCacheOperationOptions): MaybePromise<void>;
|
|
545
|
-
getMany<Doc extends PongoDocument = PongoDocument>(keys: PongoDocumentCacheKey[]): MaybePromise<(Doc | null | undefined)[]>;
|
|
546
|
-
setMany(entries: PongoCacheSetEntry[], options: PongoTransactionCacheOperationOptions): MaybePromise<void>;
|
|
547
|
-
updateMany<Doc extends PongoDocument = PongoDocument>(keys: PongoDocumentCacheKey[], updater: PongoUpdate<Doc>, options: PongoTransactionCacheOperationOptions): MaybePromise<void>;
|
|
548
|
-
deleteMany(keys: PongoDocumentCacheKey[], options: PongoTransactionCacheOperationOptions): MaybePromise<void>;
|
|
549
|
-
clear(): MaybePromise<void>;
|
|
550
|
-
commit(): Promise<void>;
|
|
551
|
-
}
|
|
552
|
-
declare const pongoTransactionCache: (options?: {
|
|
553
|
-
cache?: PongoCache;
|
|
554
|
-
}) => PongoTransactionCache;
|
|
555
|
-
|
|
556
|
-
export { type $inc as $, type AnyPongoDb as A, type BatchHandleOptions as B, type CacheConfig as C, type CacheOptions as D, type ExtractPongoDatabaseTypeFromDriver as E, type CacheSettings as F, type CacheType as G, type CollectionsMap as H, type Condition as I, type DBsMap as J, DOCUMENT_DOES_NOT_EXIST as K, DOCUMENT_EXISTS as L, type DeleteManyOptions as M, type DeleteOneOptions as N, type Document as O, type PongoDriver as P, DocumentCommandHandler as Q, type DocumentCommandHandlerInput as R, type DocumentCommandHandlerOptions as S, type DocumentHandler as T, type EnhancedOmit as U, type ExpectedDocumentVersion as V, type ExpectedDocumentVersionGeneral as W, type ExpectedDocumentVersionValue as X, type ExtractPongoDriverOptions as Y, type FindOptions as Z, type HandleOptions as _, type PongoDb as a, lruCache as a$, type HasId as a0, type InferIdType as a1, type InsertManyOptions as a2, type InsertOneOptions as a3, type LRUCacheOptions as a4, type MaybePromise as a5, NO_CONCURRENCY_CHECK as a6, type NonObjectIdLikeDocument as a7, ObjectId as a8, type ObjectIdLike as a9, type PongoFilterOperator as aA, type PongoHandleResult as aB, type PongoInsertManyResult as aC, type PongoInsertOneResult as aD, type PongoMigrationOptions as aE, type PongoReplaceManyResult as aF, type PongoSchemaConfig as aG, type PongoTransactionCache as aH, type PongoTransactionCacheOperationOptions as aI, type PongoUpdate as aJ, type PongoUpdateManyResult as aK, type PongoUpdateResult as aL, type RegExpOrString as aM, type ReplaceManyOptions as aN, type ReplaceOneOptions as aO, type RootFilterOperators as aP, type UpdateManyOptions as aQ, type UpdateOneOptions as aR, type WithId as aS, type WithIdAndVersion as aT, type WithVersion as aU, type WithoutId as aV, type WithoutIdAndVersion as aW, type WithoutVersion as aX, expectedVersion as aY, expectedVersionValue as aZ, isGeneralExpectedDocumentVersion as a_, type OperationResult as aa, type OptionalId as ab, type OptionalUnlessRequiredId as ac, type OptionalUnlessRequiredIdAndVersion as ad, type OptionalUnlessRequiredVersion as ae, type OptionalVersion as af, type PongoCacheSetEntry as ag, type PongoCacheType as ah, type PongoClientSchemaMetadata as ai, type PongoCollectionSQLBuilder as aj, type PongoCollectionSchemaComponentOptions as ak, type PongoCollectionSchemaMetadata as al, type PongoCollectionURN as am, type PongoCollectionURNType as an, type PongoDBCollectionOptions as ao, type PongoDatabaseSQLBuilder as ap, type PongoDatabaseSchemaComponentOptions as aq, type PongoDatabaseURN as ar, type PongoDatabaseURNType as as, type PongoDbOptions as at, type PongoDbSchemaMetadata as au, type PongoDbWithSchema as av, type PongoDeleteManyResult as aw, type PongoDeleteResult as ax, type PongoDocumentCacheKey as ay, PongoDriverRegistry as az, type PongoDriverOptions as b, operationResult as b0, pongoCache as b1, pongoDriverRegistry as b2, pongoSchema as b3, pongoTransactionCache as b4, proxyClientWithSchema as b5, proxyPongoDbWithSchema as b6, toClientSchemaMetadata as b7, toDbSchemaMetadata as b8, type PongoFilter as c, type PongoDocument as d, PongoCollectionSchemaComponent as e, type PongoCache as f, type PongoCollection as g, type CollectionOperationOptions as h, type CacheHooks as i, type PongoClientSchema as j, type PongoCollectionSchema as k, type PongoDatabaseFactoryOptions as l, PongoDatabaseSchemaComponent as m, type PongoDbSchema as n, type AnyPongoDriver as o, type PongoClientOptions as p, type PongoClient as q, type PongoClientWithSchema as r, type PongoTransactionOptions as s, type PongoSession as t, type PongoDbTransaction as u, type $push as v, type $set as w, type $unset as x, type AlternativeType as y, type AnyPongoDriverOptions as z };
|