@event-driven-io/pongo 0.8.0 → 0.10.0

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/index.d.cts CHANGED
@@ -1,15 +1,32 @@
1
+ import { SQLExecutor, SQL, PostgresConnector, PostgresPoolOptions, DatabaseTransaction, DatabaseTransactionFactory, NodePostgresConnection } from '@event-driven-io/dumbo';
1
2
  import pg from 'pg';
2
- import { Document, Collection as Collection$1, ObjectId as ObjectId$1, ReadConcern, ReadPreference, BSONSerializeOptions, WriteConcern, Hint, OptionalUnlessRequiredId, InsertOneOptions, InsertOneResult, BulkWriteOptions, InsertManyResult, AnyBulkWriteOperation, BulkWriteResult, Filter, UpdateFilter, UpdateOptions, UpdateResult, WithoutId as WithoutId$1, ReplaceOptions, DeleteOptions, DeleteResult, RenameOptions, DropCollectionOptions, WithId as WithId$1, FindOptions, FindCursor as FindCursor$1, OperationOptions, IndexSpecification, CreateIndexesOptions, IndexDescription, CommandOperationOptions, AbstractCursorOptions, ListIndexesCursor, IndexInformationOptions, IndexDescriptionInfo, IndexDescriptionCompact, EstimatedDocumentCountOptions, CountDocumentsOptions, EnhancedOmit, Flatten, FindOneAndDeleteOptions, ModifyResult, FindOneAndReplaceOptions, FindOneAndUpdateOptions, AggregateOptions, AggregationCursor, ChangeStreamDocument, ChangeStreamOptions, ChangeStream, UnorderedBulkOperation, OrderedBulkOperation, CountOptions, ListSearchIndexesOptions, ListSearchIndexesCursor, SearchIndexDescription } from 'mongodb';
3
- import { SQL } from '@event-driven-io/dumbo';
3
+ import { ClientSessionOptions } from 'http2';
4
+ import { Document, Collection as Collection$1, ObjectId as ObjectId$1, ClientSession, WithSessionCallback, ReadConcern, ReadPreference, BSONSerializeOptions, WriteConcern, Hint, OptionalUnlessRequiredId, InsertOneOptions, InsertOneResult, BulkWriteOptions, InsertManyResult, AnyBulkWriteOperation, BulkWriteResult, Filter, UpdateFilter, UpdateOptions, UpdateResult, WithoutId as WithoutId$1, ReplaceOptions, DeleteOptions, DeleteResult, RenameOptions, DropCollectionOptions, WithId as WithId$1, FindOptions, FindCursor as FindCursor$1, OperationOptions, IndexSpecification, CreateIndexesOptions, IndexDescription, CommandOperationOptions, AbstractCursorOptions, ListIndexesCursor, IndexInformationOptions, IndexDescriptionInfo, IndexDescriptionCompact, EstimatedDocumentCountOptions, CountDocumentsOptions, EnhancedOmit, Flatten, FindOneAndDeleteOptions, ModifyResult, FindOneAndReplaceOptions, FindOneAndUpdateOptions, AggregateOptions, AggregationCursor, ChangeStreamDocument, ChangeStreamOptions, ChangeStream, UnorderedBulkOperation, OrderedBulkOperation, CountOptions, ListSearchIndexesOptions, ListSearchIndexesCursor, SearchIndexDescription } from 'mongodb';
4
5
 
5
- type PongoClientOptions = {
6
- connectionString: string;
7
- dbName?: string | undefined;
8
- client?: pg.PoolClient | pg.Client | undefined;
6
+ type PongoCollectionOptions<ConnectorType extends string = string> = {
7
+ db: PongoDb<ConnectorType>;
8
+ collectionName: string;
9
+ sqlExecutor: SQLExecutor;
10
+ sqlBuilder: PongoCollectionSQLBuilder;
11
+ };
12
+ declare const pongoCollection: <T extends PongoDocument, ConnectorType extends string = string>({ db, collectionName, sqlExecutor, sqlBuilder: SqlFor, }: PongoCollectionOptions<ConnectorType>) => PongoCollection<T>;
13
+ type PongoCollectionSQLBuilder = {
14
+ createCollection: () => SQL;
15
+ insertOne: <T>(document: WithId<T>) => SQL;
16
+ insertMany: <T>(documents: WithId<T>[]) => SQL;
17
+ updateOne: <T>(filter: PongoFilter<T>, update: PongoUpdate<T>) => SQL;
18
+ replaceOne: <T>(filter: PongoFilter<T>, document: WithoutId<T>) => SQL;
19
+ updateMany: <T>(filter: PongoFilter<T>, update: PongoUpdate<T>) => SQL;
20
+ deleteOne: <T>(filter: PongoFilter<T>) => SQL;
21
+ deleteMany: <T>(filter: PongoFilter<T>) => SQL;
22
+ findOne: <T>(filter: PongoFilter<T>) => SQL;
23
+ find: <T>(filter: PongoFilter<T>) => SQL;
24
+ countDocuments: <T>(filter: PongoFilter<T>) => SQL;
25
+ rename: (newName: string) => SQL;
26
+ drop: () => SQL;
9
27
  };
10
- declare const postgresClient: (options: PongoClientOptions) => DbClient;
11
28
 
12
- declare const Operators: {
29
+ declare const QueryOperators: {
13
30
  $eq: string;
14
31
  $gt: string;
15
32
  $gte: string;
@@ -22,66 +39,88 @@ declare const Operators: {
22
39
  $all: string;
23
40
  $size: string;
24
41
  };
42
+ declare const OperatorMap: {
43
+ $gt: string;
44
+ $gte: string;
45
+ $lt: string;
46
+ $lte: string;
47
+ $ne: string;
48
+ };
25
49
  declare const isOperator: (key: string) => boolean;
26
50
  declare const hasOperators: (value: Record<string, unknown>) => boolean;
27
- declare const handleOperator: (path: string, operator: string, value: unknown) => string;
28
51
 
29
- declare const constructFilterQuery: <T>(filter: PongoFilter<T>) => string;
52
+ type PostgresDbClientOptions = PongoDbClientOptions<PostgresConnector> & PostgresPoolOptions;
53
+ declare const isPostgresClientOptions: (options: PongoDbClientOptions) => options is PostgresDbClientOptions;
54
+ declare const postgresDb: (options: PostgresDbClientOptions) => PongoDb<PostgresConnector>;
30
55
 
31
- declare const postgresCollection: <T extends PongoDocument>(collectionName: string, { dbName, poolOrClient: clientOrPool, }: {
32
- dbName: string;
33
- poolOrClient: pg.Pool | pg.PoolClient | pg.Client;
34
- }) => PongoCollection<T>;
35
- declare const collectionSQLBuilder: (collectionName: string) => {
36
- createCollection: () => SQL;
37
- insertOne: <T>(document: WithId<T>) => SQL;
38
- insertMany: <T_1>(documents: WithId<T_1>[]) => SQL;
39
- updateOne: <T_2>(filter: PongoFilter<T_2>, update: PongoUpdate<T_2>) => SQL;
40
- replaceOne: <T_3>(filter: PongoFilter<T_3>, document: WithoutId<T_3>) => SQL;
41
- updateMany: <T_4>(filter: PongoFilter<T_4>, update: PongoUpdate<T_4>) => SQL;
42
- deleteOne: <T_5>(filter: PongoFilter<T_5>) => SQL;
43
- deleteMany: <T_6>(filter: PongoFilter<T_6>) => SQL;
44
- findOne: <T_7>(filter: PongoFilter<T_7>) => SQL;
45
- find: <T_8>(filter: PongoFilter<T_8>) => SQL;
46
- countDocuments: <T_9>(filter: PongoFilter<T_9>) => SQL;
47
- rename: (newName: string) => SQL;
48
- drop: (targetName?: string) => SQL;
49
- };
50
-
51
- declare const buildUpdateQuery: <T>(update: PongoUpdate<T>) => SQL;
52
- declare const buildSetQuery: <T>(set: $set<T>, currentUpdateQuery: SQL) => SQL;
53
- declare const buildUnsetQuery: <T>(unset: $unset<T>, currentUpdateQuery: SQL) => SQL;
54
- declare const buildIncQuery: <T>(inc: $inc<T>, currentUpdateQuery: SQL) => SQL;
55
- declare const buildPushQuery: <T>(push: $push<T>, currentUpdateQuery: SQL) => SQL;
56
+ declare const postgresSQLBuilder: (collectionName: string) => PongoCollectionSQLBuilder;
56
57
 
57
58
  interface PongoClient {
58
59
  connect(): Promise<this>;
59
60
  close(): Promise<void>;
60
61
  db(dbName?: string): PongoDb;
62
+ startSession(): PongoSession;
63
+ withSession<T = unknown>(callback: (session: PongoSession) => Promise<T>): Promise<T>;
64
+ }
65
+ declare interface PongoTransactionOptions {
66
+ get snapshotEnabled(): boolean;
67
+ maxCommitTimeMS?: number;
68
+ }
69
+ interface PongoDbTransaction {
70
+ get databaseName(): string | null;
71
+ options: PongoTransactionOptions;
72
+ enlistDatabase: (database: PongoDb) => Promise<DatabaseTransaction>;
73
+ commit: () => Promise<void>;
74
+ rollback: (error?: unknown) => Promise<void>;
75
+ get sqlExecutor(): SQLExecutor;
76
+ get isStarting(): boolean;
77
+ get isActive(): boolean;
78
+ get isCommitted(): boolean;
61
79
  }
62
- interface PongoDb {
80
+ interface PongoSession {
81
+ hasEnded: boolean;
82
+ explicit: boolean;
83
+ defaultTransactionOptions: PongoTransactionOptions;
84
+ transaction: PongoDbTransaction | null;
85
+ get snapshotEnabled(): boolean;
86
+ endSession(): Promise<void>;
87
+ incrementTransactionNumber(): void;
88
+ inTransaction(): boolean;
89
+ startTransaction(options?: PongoTransactionOptions): void;
90
+ commitTransaction(): Promise<void>;
91
+ abortTransaction(): Promise<void>;
92
+ withTransaction<T = unknown>(fn: (session: PongoSession) => Promise<T>, options?: PongoTransactionOptions): Promise<T>;
93
+ }
94
+ interface PongoDb<ConnectorType extends string = string> extends DatabaseTransactionFactory<ConnectorType> {
95
+ get connectorType(): ConnectorType;
96
+ get databaseName(): string;
97
+ connect(): Promise<void>;
98
+ close(): Promise<void>;
63
99
  collection<T extends PongoDocument>(name: string): PongoCollection<T>;
64
100
  }
101
+ type CollectionOperationOptions = {
102
+ session?: PongoSession;
103
+ };
65
104
  interface PongoCollection<T extends PongoDocument> {
66
105
  readonly dbName: string;
67
106
  readonly collectionName: string;
68
- createCollection(): Promise<void>;
69
- insertOne(document: T): Promise<PongoInsertOneResult>;
70
- insertMany(documents: T[]): Promise<PongoInsertManyResult>;
71
- updateOne(filter: PongoFilter<T>, update: PongoUpdate<T>): Promise<PongoUpdateResult>;
72
- replaceOne(filter: PongoFilter<T>, document: WithoutId<T>): Promise<PongoUpdateResult>;
73
- updateMany(filter: PongoFilter<T>, update: PongoUpdate<T>): Promise<PongoUpdateResult>;
74
- deleteOne(filter?: PongoFilter<T>): Promise<PongoDeleteResult>;
75
- deleteMany(filter?: PongoFilter<T>): Promise<PongoDeleteResult>;
76
- findOne(filter?: PongoFilter<T>): Promise<T | null>;
77
- find(filter?: PongoFilter<T>): Promise<T[]>;
78
- findOneAndDelete(filter: PongoFilter<T>): Promise<T | null>;
79
- findOneAndReplace(filter: PongoFilter<T>, replacement: WithoutId<T>): Promise<T | null>;
80
- findOneAndUpdate(filter: PongoFilter<T>, update: PongoUpdate<T>): Promise<T | null>;
81
- countDocuments(filter?: PongoFilter<T>): Promise<number>;
82
- drop(): Promise<boolean>;
83
- rename(newName: string): Promise<PongoCollection<T>>;
84
- handle(id: string, handle: DocumentHandler<T>): Promise<T | null>;
107
+ createCollection(options?: CollectionOperationOptions): Promise<void>;
108
+ insertOne(document: T, options?: CollectionOperationOptions): Promise<PongoInsertOneResult>;
109
+ insertMany(documents: T[], options?: CollectionOperationOptions): Promise<PongoInsertManyResult>;
110
+ updateOne(filter: PongoFilter<T>, update: PongoUpdate<T>, options?: CollectionOperationOptions): Promise<PongoUpdateResult>;
111
+ replaceOne(filter: PongoFilter<T>, document: WithoutId<T>, options?: CollectionOperationOptions): Promise<PongoUpdateResult>;
112
+ updateMany(filter: PongoFilter<T>, update: PongoUpdate<T>, options?: CollectionOperationOptions): Promise<PongoUpdateResult>;
113
+ deleteOne(filter?: PongoFilter<T>, options?: CollectionOperationOptions): Promise<PongoDeleteResult>;
114
+ deleteMany(filter?: PongoFilter<T>, options?: CollectionOperationOptions): Promise<PongoDeleteResult>;
115
+ findOne(filter?: PongoFilter<T>, options?: CollectionOperationOptions): Promise<T | null>;
116
+ find(filter?: PongoFilter<T>, options?: CollectionOperationOptions): Promise<T[]>;
117
+ findOneAndDelete(filter: PongoFilter<T>, options?: CollectionOperationOptions): Promise<T | null>;
118
+ findOneAndReplace(filter: PongoFilter<T>, replacement: WithoutId<T>, options?: CollectionOperationOptions): Promise<T | null>;
119
+ findOneAndUpdate(filter: PongoFilter<T>, update: PongoUpdate<T>, options?: CollectionOperationOptions): Promise<T | null>;
120
+ countDocuments(filter?: PongoFilter<T>, options?: CollectionOperationOptions): Promise<number>;
121
+ drop(options?: CollectionOperationOptions): Promise<boolean>;
122
+ rename(newName: string, options?: CollectionOperationOptions): Promise<PongoCollection<T>>;
123
+ handle(id: string, handle: DocumentHandler<T>, options?: CollectionOperationOptions): Promise<T | null>;
85
124
  }
86
125
  type HasId = {
87
126
  _id: string;
@@ -145,16 +184,32 @@ interface PongoDeleteManyResult {
145
184
  type PongoDocument = Record<string, unknown>;
146
185
  type DocumentHandler<T extends PongoDocument> = ((document: T | null) => T | null) | ((document: T | null) => Promise<T | null>);
147
186
 
148
- interface DbClient {
149
- connect(): Promise<void>;
150
- close(): Promise<void>;
151
- collection: <T extends PongoDocument>(name: string) => PongoCollection<T>;
152
- }
153
- declare const getDbClient: (options: PongoClientOptions) => DbClient;
154
-
155
- declare const pongoClient: (connectionString: string, options?: {
156
- client?: pg.PoolClient | pg.Client;
157
- }) => PongoClient;
187
+ type PooledPongoClientOptions = {
188
+ pool: pg.Pool;
189
+ } | {
190
+ pooled: true;
191
+ } | {
192
+ pool: pg.Pool;
193
+ pooled: true;
194
+ } | {};
195
+ type NotPooledPongoOptions = {
196
+ client: pg.Client;
197
+ } | {
198
+ pooled: false;
199
+ } | {
200
+ client: pg.Client;
201
+ pooled: false;
202
+ } | {
203
+ connection: NodePostgresConnection;
204
+ pooled?: false;
205
+ };
206
+ type PongoClientOptions = PooledPongoClientOptions | NotPooledPongoOptions;
207
+ declare const pongoClient: <DbClientOptions extends PostgresDbClientOptions = PostgresDbClientOptions>(connectionString: string, options?: PongoClientOptions) => PongoClient;
208
+ declare const clientToDbOptions: <DbClientOptions extends PostgresDbClientOptions = PostgresDbClientOptions>(options: {
209
+ connectionString: string;
210
+ dbName?: string;
211
+ clientOptions: PongoClientOptions;
212
+ }) => DbClientOptions;
158
213
 
159
214
  type Entry<T> = {
160
215
  [K in keyof Required<T>]: [K, Required<T>[K]];
@@ -167,6 +222,22 @@ type NonPartial<T> = {
167
222
  [K in keyof Required<T>]: T[K];
168
223
  };
169
224
 
225
+ type PongoDbClientOptions<ConnectorType extends string = string> = {
226
+ connectorType: ConnectorType;
227
+ connectionString: string;
228
+ dbName: string | undefined;
229
+ };
230
+ type AllowedDbClientOptions = PostgresDbClientOptions;
231
+ declare const getPongoDb: <DbClientOptions extends PostgresDbClientOptions = PostgresDbClientOptions>(options: DbClientOptions) => PongoDb;
232
+
233
+ type PongoSessionOptions = {
234
+ explicit?: boolean;
235
+ defaultTransactionOptions: PongoTransactionOptions;
236
+ };
237
+ declare const pongoSession: (options?: PongoSessionOptions) => PongoSession;
238
+
239
+ declare const pongoTransaction: (options: PongoTransactionOptions) => PongoDbTransaction;
240
+
170
241
  declare class FindCursor<T> {
171
242
  private findDocumentsPromise;
172
243
  private documents;
@@ -182,6 +253,7 @@ declare class FindCursor<T> {
182
253
  declare class Db {
183
254
  private pongoDb;
184
255
  constructor(pongoDb: PongoDb);
256
+ get databaseName(): string;
185
257
  collection<T extends Document>(collectionName: string): Collection$1<T> & {
186
258
  handle(id: ObjectId$1, handle: DocumentHandler<T>): Promise<T | null>;
187
259
  };
@@ -189,12 +261,13 @@ declare class Db {
189
261
 
190
262
  declare class MongoClient {
191
263
  private pongoClient;
192
- constructor(connectionString: string, options?: {
193
- client?: pg.PoolClient | pg.Client;
194
- });
264
+ constructor(connectionString: string, options?: PongoClientOptions);
195
265
  connect(): Promise<this>;
196
266
  close(): Promise<void>;
197
267
  db(dbName?: string): Db;
268
+ startSession(_options?: ClientSessionOptions): ClientSession;
269
+ withSession<T = any>(_executor: WithSessionCallback<T>): Promise<T>;
270
+ withSession<T = any>(_options: ClientSessionOptions, _executor: WithSessionCallback<T>): Promise<T>;
198
271
  }
199
272
 
200
273
  declare class Collection<T extends Document> implements Collection$1<T> {
@@ -209,16 +282,16 @@ declare class Collection<T extends Document> implements Collection$1<T> {
209
282
  get writeConcern(): WriteConcern | undefined;
210
283
  get hint(): Hint | undefined;
211
284
  set hint(v: Hint | undefined);
212
- insertOne(doc: OptionalUnlessRequiredId<T>, _options?: InsertOneOptions | undefined): Promise<InsertOneResult<T>>;
213
- insertMany(docs: OptionalUnlessRequiredId<T>[], _options?: BulkWriteOptions | undefined): Promise<InsertManyResult<T>>;
285
+ insertOne(doc: OptionalUnlessRequiredId<T>, options?: InsertOneOptions | undefined): Promise<InsertOneResult<T>>;
286
+ insertMany(docs: OptionalUnlessRequiredId<T>[], options?: BulkWriteOptions | undefined): Promise<InsertManyResult<T>>;
214
287
  bulkWrite(_operations: AnyBulkWriteOperation<T>[], _options?: BulkWriteOptions | undefined): Promise<BulkWriteResult>;
215
- updateOne(filter: Filter<T>, update: Document[] | UpdateFilter<T>, _options?: UpdateOptions | undefined): Promise<UpdateResult<T>>;
216
- replaceOne(filter: Filter<T>, document: WithoutId$1<T>, _options?: ReplaceOptions | undefined): Promise<Document | UpdateResult<T>>;
217
- updateMany(filter: Filter<T>, update: Document[] | UpdateFilter<T>, _options?: UpdateOptions | undefined): Promise<UpdateResult<T>>;
218
- deleteOne(filter?: Filter<T> | undefined, _options?: DeleteOptions | undefined): Promise<DeleteResult>;
219
- deleteMany(filter?: Filter<T> | undefined, _options?: DeleteOptions | undefined): Promise<DeleteResult>;
220
- rename(newName: string, _options?: RenameOptions | undefined): Promise<Collection<Document>>;
221
- drop(_options?: DropCollectionOptions | undefined): Promise<boolean>;
288
+ updateOne(filter: Filter<T>, update: Document[] | UpdateFilter<T>, options?: UpdateOptions | undefined): Promise<UpdateResult<T>>;
289
+ replaceOne(filter: Filter<T>, document: WithoutId$1<T>, options?: ReplaceOptions | undefined): Promise<Document | UpdateResult<T>>;
290
+ updateMany(filter: Filter<T>, update: Document[] | UpdateFilter<T>, options?: UpdateOptions | undefined): Promise<UpdateResult<T>>;
291
+ deleteOne(filter?: Filter<T> | undefined, options?: DeleteOptions | undefined): Promise<DeleteResult>;
292
+ deleteMany(filter?: Filter<T> | undefined, options?: DeleteOptions | undefined): Promise<DeleteResult>;
293
+ rename(newName: string, options?: RenameOptions | undefined): Promise<Collection<Document>>;
294
+ drop(options?: DropCollectionOptions | undefined): Promise<boolean>;
222
295
  findOne(): Promise<WithId$1<T> | null>;
223
296
  findOne(filter: Filter<T>): Promise<WithId$1<T> | null>;
224
297
  findOne(filter: Filter<T>, options: FindOptions<Document>): Promise<WithId$1<T> | null>;
@@ -244,8 +317,8 @@ declare class Collection<T extends Document> implements Collection$1<T> {
244
317
  }): Promise<IndexDescriptionCompact>;
245
318
  indexInformation(options: IndexInformationOptions): Promise<IndexDescriptionCompact | IndexDescriptionInfo[]>;
246
319
  indexInformation(): Promise<IndexDescriptionCompact>;
247
- estimatedDocumentCount(_options?: EstimatedDocumentCountOptions | undefined): Promise<number>;
248
- countDocuments(filter?: Filter<T> | undefined, _options?: CountDocumentsOptions | undefined): Promise<number>;
320
+ estimatedDocumentCount(options?: EstimatedDocumentCountOptions | undefined): Promise<number>;
321
+ countDocuments(filter?: Filter<T> | undefined, options?: CountDocumentsOptions | undefined): Promise<number>;
249
322
  distinct<Key extends '_id' | keyof EnhancedOmit<T, '_id'>>(key: Key): Promise<Flatten<WithId$1<T>[Key]>[]>;
250
323
  distinct<Key extends '_id' | keyof EnhancedOmit<T, '_id'>>(key: Key, filter: Filter<T>): Promise<Flatten<WithId$1<T>[Key]>[]>;
251
324
  distinct<Key extends '_id' | keyof EnhancedOmit<T, '_id'>>(key: Key, filter: Filter<T>, options: CommandOperationOptions): Promise<Flatten<WithId$1<T>[Key]>[]>;
@@ -288,7 +361,7 @@ declare class Collection<T extends Document> implements Collection$1<T> {
288
361
  watch<TLocal extends Document = T, TChange extends Document = ChangeStreamDocument<TLocal>>(_pipeline?: Document[] | undefined, _options?: ChangeStreamOptions | undefined): ChangeStream<TLocal, TChange>;
289
362
  initializeUnorderedBulkOp(_options?: BulkWriteOptions | undefined): UnorderedBulkOperation;
290
363
  initializeOrderedBulkOp(_options?: BulkWriteOptions | undefined): OrderedBulkOperation;
291
- count(filter?: Filter<T> | undefined, _options?: CountOptions | undefined): Promise<number>;
364
+ count(filter?: Filter<T> | undefined, options?: CountOptions | undefined): Promise<number>;
292
365
  listSearchIndexes(options?: ListSearchIndexesOptions | undefined): ListSearchIndexesCursor;
293
366
  listSearchIndexes(name: string, options?: ListSearchIndexesOptions | undefined): ListSearchIndexesCursor;
294
367
  createSearchIndex(_description: SearchIndexDescription): Promise<string>;
@@ -303,4 +376,4 @@ type ObjectId = string & {
303
376
  __brandId: 'ObjectId';
304
377
  };
305
378
 
306
- export { type $inc, type $push, type $set, type $unset, Collection, Db, type DbClient, type DocumentHandler, FindCursor, type HasId, MongoClient, type NonPartial, type ObjectId, Operators, type PongoClient, type PongoClientOptions, type PongoCollection, type PongoDb, type PongoDeleteManyResult, type PongoDeleteResult, type PongoDocument, type PongoFilter, type PongoFilterOperator, type PongoInsertManyResult, type PongoInsertOneResult, type PongoUpdate, type PongoUpdateManyResult, type PongoUpdateResult, type WithId, type WithoutId, buildIncQuery, buildPushQuery, buildSetQuery, buildUnsetQuery, buildUpdateQuery, collectionSQLBuilder, constructFilterQuery, entries, getDbClient, handleOperator, hasOperators, isOperator, pongoClient, postgresClient, postgresCollection };
379
+ export { type $inc, type $push, type $set, type $unset, type AllowedDbClientOptions, Collection, type CollectionOperationOptions, Db, type DocumentHandler, FindCursor, type HasId, MongoClient, type NonPartial, type NotPooledPongoOptions, type ObjectId, OperatorMap, type PongoClient, type PongoClientOptions, type PongoCollection, type PongoCollectionOptions, type PongoCollectionSQLBuilder, type PongoDb, type PongoDbClientOptions, type PongoDbTransaction, type PongoDeleteManyResult, type PongoDeleteResult, type PongoDocument, type PongoFilter, type PongoFilterOperator, type PongoInsertManyResult, type PongoInsertOneResult, type PongoSession, type PongoSessionOptions, type PongoTransactionOptions, type PongoUpdate, type PongoUpdateManyResult, type PongoUpdateResult, type PooledPongoClientOptions, type PostgresDbClientOptions, QueryOperators, type WithId, type WithoutId, clientToDbOptions, entries, getPongoDb, hasOperators, isOperator, isPostgresClientOptions, pongoClient, pongoCollection, pongoSession, pongoTransaction, postgresDb, postgresSQLBuilder };