@event-driven-io/pongo 0.17.0-beta.35 → 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-EQ3T4XHT.cjs +0 -1583
- package/dist/chunk-EQ3T4XHT.cjs.map +0 -1
- package/dist/chunk-H6YIW5C5.js +0 -399
- package/dist/chunk-H6YIW5C5.js.map +0 -1
- package/dist/chunk-NTHMSHNG.cjs +0 -399
- package/dist/chunk-NTHMSHNG.cjs.map +0 -1
- package/dist/chunk-NWYI26VT.js +0 -1583
- package/dist/chunk-NWYI26VT.js.map +0 -1
- package/dist/index-BfBszcG4.d.ts +0 -8
- package/dist/index-a-fxODW1.d.cts +0 -8
- package/dist/pongoTransactionCache-CRuPGag3.d.cts +0 -556
- package/dist/pongoTransactionCache-CRuPGag3.d.ts +0 -556
package/dist/shim.d.ts
CHANGED
|
@@ -1,147 +1,150 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import '@event-driven-io/dumbo';
|
|
5
|
-
import 'lru-cache';
|
|
1
|
+
import { G as DocumentHandler, Xt as AnyPongoDriver, Z as HandleOptions, fn as PongoClientSchema, gt as PongoDb, ht as PongoDBCollectionOptions, mt as PongoCollection, pt as PongoClientOptions, wt as PongoHandleResult } from "./index-DMq6F3x9.js";
|
|
2
|
+
import { ClientSessionOptions } from "http2";
|
|
3
|
+
import { AbstractCursorOptions, AggregateOptions, AggregationCursor, AnyBulkWriteOperation, BSONSerializeOptions, BulkWriteOptions, BulkWriteResult, ChangeStream, ChangeStreamDocument, ChangeStreamOptions, ClientSession, Collection as Collection$1, CommandOperationOptions, CountDocumentsOptions, CountOptions, CreateIndexesOptions, Db as Db$1, DeleteOptions, DeleteResult, Document, DropCollectionOptions, EnhancedOmit, EstimatedDocumentCountOptions, Filter, FindCursor as FindCursor$1, FindOneAndDeleteOptions, FindOneAndReplaceOptions, FindOneAndUpdateOptions, FindOptions, Flatten, Hint, IndexDescription, IndexDescriptionCompact, IndexDescriptionInfo, IndexInformationOptions, IndexSpecification, InsertManyResult, InsertOneOptions, InsertOneResult, ListIndexesCursor, ListSearchIndexesCursor, ListSearchIndexesOptions, ModifyResult, ObjectId, OperationOptions, OptionalUnlessRequiredId, OrderedBulkOperation, ReadConcern, ReadPreference, RenameOptions, ReplaceOptions, SearchIndexDescription, UnorderedBulkOperation, UpdateFilter, UpdateOptions, UpdateResult, WithId, WithSessionCallback, WithoutId, WriteConcern } from "mongodb";
|
|
6
4
|
|
|
5
|
+
//#region src/mongo/findCursor.d.ts
|
|
7
6
|
declare class FindCursor<T> {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
private findDocumentsPromise;
|
|
8
|
+
private documents;
|
|
9
|
+
private index;
|
|
10
|
+
constructor(documents: Promise<T[]>);
|
|
11
|
+
toArray(): Promise<T[]>;
|
|
12
|
+
forEach(callback: (doc: T) => void): Promise<void>;
|
|
13
|
+
hasNext(): boolean;
|
|
14
|
+
next(): Promise<T | null>;
|
|
15
|
+
private findDocuments;
|
|
17
16
|
}
|
|
18
|
-
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/mongo/mongoDb.d.ts
|
|
19
19
|
declare class Db {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
private pongoDb;
|
|
21
|
+
constructor(pongoDb: PongoDb);
|
|
22
|
+
get databaseName(): string;
|
|
23
|
+
collection<T extends Document>(collectionName: string, options?: PongoDBCollectionOptions<T>): Collection$1<T> & {
|
|
24
|
+
handle(id: ObjectId, handle: DocumentHandler<T>, options?: HandleOptions): Promise<PongoHandleResult<T>>;
|
|
25
|
+
};
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/mongo/mongoClient.d.ts
|
|
28
29
|
declare class MongoClient<DatabaseDriverType extends AnyPongoDriver = AnyPongoDriver, TypedClientSchema extends PongoClientSchema = PongoClientSchema> {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
30
|
+
private pongoClient;
|
|
31
|
+
constructor(options: PongoClientOptions<DatabaseDriverType, TypedClientSchema>);
|
|
32
|
+
constructor(connectionString: string, options?: Omit<PongoClientOptions<DatabaseDriverType, TypedClientSchema>, 'connectionString'> & {
|
|
33
|
+
driver?: AnyPongoDriver;
|
|
34
|
+
});
|
|
35
|
+
connect(): Promise<this>;
|
|
36
|
+
close(): Promise<void>;
|
|
37
|
+
db(dbName?: string): Db;
|
|
38
|
+
startSession(_options?: ClientSessionOptions): ClientSession;
|
|
39
|
+
withSession<T = any>(_executor: WithSessionCallback<T>): Promise<T>;
|
|
40
|
+
withSession<T = any>(_options: ClientSessionOptions, _executor: WithSessionCallback<T>): Promise<T>;
|
|
40
41
|
}
|
|
41
|
-
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/mongo/mongoCollection.d.ts
|
|
42
44
|
declare class Collection<T extends Document> implements Collection$1<T> {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
45
|
+
private collection;
|
|
46
|
+
private database;
|
|
47
|
+
constructor(database: Db, collection: PongoCollection<T>);
|
|
48
|
+
get db(): Db$1;
|
|
49
|
+
get dbName(): string;
|
|
50
|
+
get collectionName(): string;
|
|
51
|
+
get namespace(): string;
|
|
52
|
+
get readConcern(): ReadConcern | undefined;
|
|
53
|
+
get readPreference(): ReadPreference | undefined;
|
|
54
|
+
get bsonOptions(): BSONSerializeOptions;
|
|
55
|
+
get writeConcern(): WriteConcern | undefined;
|
|
56
|
+
get hint(): Hint | undefined;
|
|
57
|
+
get timeoutMS(): number | undefined;
|
|
58
|
+
set hint(v: Hint | undefined);
|
|
59
|
+
insertOne(doc: OptionalUnlessRequiredId<T>, options?: InsertOneOptions): Promise<InsertOneResult<T>>;
|
|
60
|
+
insertMany(docs: OptionalUnlessRequiredId<T>[], options?: BulkWriteOptions): Promise<InsertManyResult<T>>;
|
|
61
|
+
bulkWrite(_operations: AnyBulkWriteOperation<T>[], _options?: BulkWriteOptions): Promise<BulkWriteResult>;
|
|
62
|
+
updateOne(filter: Filter<T>, update: Document[] | UpdateFilter<T>, options?: UpdateOptions): Promise<UpdateResult<T>>;
|
|
63
|
+
replaceOne(filter: Filter<T>, document: WithoutId<T>, options?: ReplaceOptions): Promise<UpdateResult<T>>;
|
|
64
|
+
updateMany(filter: Filter<T>, update: Document[] | UpdateFilter<T>, options?: UpdateOptions): Promise<UpdateResult<T>>;
|
|
65
|
+
deleteOne(filter?: Filter<T>, options?: DeleteOptions): Promise<DeleteResult>;
|
|
66
|
+
deleteMany(filter?: Filter<T>, options?: DeleteOptions): Promise<DeleteResult>;
|
|
67
|
+
rename(newName: string, options?: RenameOptions): Promise<Collection<Document>>;
|
|
68
|
+
drop(options?: DropCollectionOptions): Promise<boolean>;
|
|
69
|
+
findOne(): Promise<WithId<T> | null>;
|
|
70
|
+
findOne(filter: Filter<T>): Promise<WithId<T> | null>;
|
|
71
|
+
findOne(filter: Filter<T>, options: FindOptions): Promise<WithId<T> | null>;
|
|
72
|
+
findOne<TS = T>(): Promise<TS | null>;
|
|
73
|
+
findOne<TS = T>(filter: Filter<TS>): Promise<TS | null>;
|
|
74
|
+
findOne<TS = T>(filter: Filter<TS>, options?: FindOptions): Promise<TS | null>;
|
|
75
|
+
find(): FindCursor$1<WithId<T>>;
|
|
76
|
+
find(filter: Filter<T>, options?: FindOptions): FindCursor$1<WithId<T>>;
|
|
77
|
+
find<T extends Document>(filter: Filter<T>, options?: FindOptions): FindCursor$1<T>;
|
|
78
|
+
options(_options?: OperationOptions): Promise<Document>;
|
|
79
|
+
isCapped(_options?: OperationOptions): Promise<boolean>;
|
|
80
|
+
createIndex(_indexSpec: IndexSpecification, _options?: CreateIndexesOptions): Promise<string>;
|
|
81
|
+
createIndexes(_indexSpecs: IndexDescription[], _options?: CreateIndexesOptions): Promise<string[]>;
|
|
82
|
+
dropIndex(_indexName: string, _options?: CommandOperationOptions): Promise<Document>;
|
|
83
|
+
dropIndexes(_options?: CommandOperationOptions): Promise<boolean>;
|
|
84
|
+
listIndexes(_options?: AbstractCursorOptions): ListIndexesCursor;
|
|
85
|
+
indexExists(_indexes: string | string[], _options?: AbstractCursorOptions): Promise<boolean>;
|
|
86
|
+
indexInformation(options: IndexInformationOptions & {
|
|
87
|
+
full: true;
|
|
88
|
+
}): Promise<IndexDescriptionInfo[]>;
|
|
89
|
+
indexInformation(options: IndexInformationOptions & {
|
|
90
|
+
full?: false | undefined;
|
|
91
|
+
}): Promise<IndexDescriptionCompact>;
|
|
92
|
+
indexInformation(options: IndexInformationOptions): Promise<IndexDescriptionCompact | IndexDescriptionInfo[]>;
|
|
93
|
+
indexInformation(): Promise<IndexDescriptionCompact>;
|
|
94
|
+
estimatedDocumentCount(options?: EstimatedDocumentCountOptions): Promise<number>;
|
|
95
|
+
countDocuments(filter?: Filter<T>, options?: CountDocumentsOptions): Promise<number>;
|
|
96
|
+
distinct<Key extends '_id' | keyof EnhancedOmit<T, '_id'>>(key: Key): Promise<Flatten<WithId<T>[Key]>[]>;
|
|
97
|
+
distinct<Key extends '_id' | keyof EnhancedOmit<T, '_id'>>(key: Key, filter: Filter<T>): Promise<Flatten<WithId<T>[Key]>[]>;
|
|
98
|
+
distinct<Key extends '_id' | keyof EnhancedOmit<T, '_id'>>(key: Key, filter: Filter<T>, options: CommandOperationOptions): Promise<Flatten<WithId<T>[Key]>[]>;
|
|
99
|
+
distinct(key: string): Promise<any[]>;
|
|
100
|
+
distinct(key: string, filter: Filter<T>): Promise<any[]>;
|
|
101
|
+
distinct(key: string, filter: Filter<T>, options: CommandOperationOptions): Promise<any[]>;
|
|
102
|
+
indexes(options: IndexInformationOptions & {
|
|
103
|
+
full?: true | undefined;
|
|
104
|
+
}): Promise<IndexDescriptionInfo[]>;
|
|
105
|
+
indexes(options: IndexInformationOptions & {
|
|
106
|
+
full: false;
|
|
107
|
+
}): Promise<IndexDescriptionCompact>;
|
|
108
|
+
indexes(options: IndexInformationOptions): Promise<IndexDescriptionCompact | IndexDescriptionInfo[]>;
|
|
109
|
+
indexes(options?: AbstractCursorOptions): Promise<IndexDescriptionInfo[]>;
|
|
110
|
+
findOneAndDelete(filter: Filter<T>, options: FindOneAndDeleteOptions & {
|
|
111
|
+
includeResultMetadata: true;
|
|
112
|
+
}): Promise<ModifyResult<T>>;
|
|
113
|
+
findOneAndDelete(filter: Filter<T>, options: FindOneAndDeleteOptions & {
|
|
114
|
+
includeResultMetadata: false;
|
|
115
|
+
}): Promise<WithId<T> | null>;
|
|
116
|
+
findOneAndDelete(filter: Filter<T>, options: FindOneAndDeleteOptions): Promise<WithId<T> | null>;
|
|
117
|
+
findOneAndDelete(filter: Filter<T>): Promise<WithId<T> | null>;
|
|
118
|
+
findOneAndReplace(filter: Filter<T>, replacement: WithoutId<T>, options: FindOneAndReplaceOptions & {
|
|
119
|
+
includeResultMetadata: true;
|
|
120
|
+
}): Promise<ModifyResult<T>>;
|
|
121
|
+
findOneAndReplace(filter: Filter<T>, replacement: WithoutId<T>, options: FindOneAndReplaceOptions & {
|
|
122
|
+
includeResultMetadata: false;
|
|
123
|
+
}): Promise<WithId<T> | null>;
|
|
124
|
+
findOneAndReplace(filter: Filter<T>, replacement: WithoutId<T>, options: FindOneAndReplaceOptions): Promise<WithId<T> | null>;
|
|
125
|
+
findOneAndReplace(filter: Filter<T>, replacement: WithoutId<T>): Promise<WithId<T> | null>;
|
|
126
|
+
findOneAndUpdate(filter: Filter<T>, update: UpdateFilter<T>, options: FindOneAndUpdateOptions & {
|
|
127
|
+
includeResultMetadata: true;
|
|
128
|
+
}): Promise<ModifyResult<T>>;
|
|
129
|
+
findOneAndUpdate(filter: Filter<T>, update: UpdateFilter<T>, options: FindOneAndUpdateOptions & {
|
|
130
|
+
includeResultMetadata: false;
|
|
131
|
+
}): Promise<WithId<T> | null>;
|
|
132
|
+
findOneAndUpdate(filter: Filter<T>, update: UpdateFilter<T>, options: FindOneAndUpdateOptions): Promise<WithId<T> | null>;
|
|
133
|
+
findOneAndUpdate(filter: Filter<T>, update: UpdateFilter<T>): Promise<WithId<T> | null>;
|
|
134
|
+
aggregate<T extends Document = Document>(_pipeline?: Document[], _options?: AggregateOptions): AggregationCursor<T>;
|
|
135
|
+
watch<TLocal extends Document = T, TChange extends Document = ChangeStreamDocument<TLocal>>(_pipeline?: Document[], _options?: ChangeStreamOptions): ChangeStream<TLocal, TChange>;
|
|
136
|
+
initializeUnorderedBulkOp(_options?: BulkWriteOptions): UnorderedBulkOperation;
|
|
137
|
+
initializeOrderedBulkOp(_options?: BulkWriteOptions): OrderedBulkOperation;
|
|
138
|
+
count(filter?: Filter<T>, options?: CountOptions): Promise<number>;
|
|
139
|
+
listSearchIndexes(options?: ListSearchIndexesOptions): ListSearchIndexesCursor;
|
|
140
|
+
listSearchIndexes(name: string, options?: ListSearchIndexesOptions): ListSearchIndexesCursor;
|
|
141
|
+
createSearchIndex(_description: SearchIndexDescription): Promise<string>;
|
|
142
|
+
createSearchIndexes(_descriptions: SearchIndexDescription[]): Promise<string[]>;
|
|
143
|
+
dropSearchIndex(_name: string): Promise<void>;
|
|
144
|
+
updateSearchIndex(_name: string, _definition: Document): Promise<void>;
|
|
145
|
+
createCollection(): Promise<void>;
|
|
146
|
+
handle(id: ObjectId, handle: DocumentHandler<T>, options?: HandleOptions): Promise<PongoHandleResult<T>>;
|
|
145
147
|
}
|
|
146
|
-
|
|
148
|
+
//#endregion
|
|
147
149
|
export { Collection, Db, FindCursor, MongoClient };
|
|
150
|
+
//# sourceMappingURL=shim.d.ts.map
|