harperdb 4.6.10 → 4.6.11

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.
@@ -76,484 +76,7 @@ export declare function dropDatabase(databaseName: any): Promise<void>;
76
76
  * @param splitSegments
77
77
  * @param replicate
78
78
  */
79
- export declare function table(tableDefinition: TableDefinition): {
80
- new (identifier: import("./ResourceInterface.js").Id, source: any): {
81
- #record: any;
82
- #changes: any;
83
- #version?: number;
84
- #entry?: import("./RecordEncoder.ts").Entry;
85
- #saveMode?: boolean;
86
- #loadedFromSource?: boolean;
87
- getProperty: (name: string) => any;
88
- ensureLoaded(): unknown;
89
- get(target?: import("./RequestTarget.js").RequestTarget): Promise<object | void>;
90
- allowRead(user: any, target: import("./RequestTarget.js").RequestTarget): boolean;
91
- allowUpdate(user: any, updatedData: any, target: import("./RequestTarget.js").RequestTarget): boolean;
92
- allowCreate(user: any, newData: any, target: import("./RequestTarget.js").RequestTarget): boolean;
93
- allowDelete(user: any, target: import("./RequestTarget.js").RequestTarget): boolean;
94
- update(target: import("./RequestTarget.js").RequestTarget, updates?: any): /*elided*/ any | {
95
- set: (property: string, value: any) => void;
96
- getProperty: (property: string) => any;
97
- getUpdatedTime(): number;
98
- getExpiresAt(): number;
99
- addTo(property: string, value: number | bigint): void;
100
- subtractFrom(property: string, value: number | bigint): void;
101
- #record: any;
102
- #changes: any;
103
- getRecord(): any;
104
- setRecord(record: any): void;
105
- getChanges(): any;
106
- _setChanges(changes: any): void;
107
- };
108
- addTo(property: any, value: any): void;
109
- subtractFrom(property: any, value: any): void;
110
- getMetadata(): import("./RecordEncoder.ts").Entry;
111
- getRecord(): any;
112
- getChanges(): any;
113
- _setChanges(changes: any): void;
114
- setRecord(record: any): void;
115
- invalidate(target: import("./ResourceInterface.js").RequestTargetOrId): void;
116
- _writeInvalidate(id: import("./ResourceInterface.js").Id, partialRecord?: any, options?: any): void;
117
- _writeRelocate(id: import("./ResourceInterface.js").Id, options: any): void;
118
- lock(): void;
119
- put(target: import("./RequestTarget.js").RequestTarget, record: any): void | Promise<void>;
120
- create(target: import("./RequestTarget.js").RequestTarget, record: any): void | Promise<void>;
121
- patch(target: import("./RequestTarget.js").RequestTarget, recordUpdate: any): void | Promise<void>;
122
- _writeUpdate(id: import("./ResourceInterface.js").Id, recordUpdate: any, fullUpdate: boolean, options?: any): void;
123
- delete(target: import("./RequestTarget.js").RequestTarget): Promise<boolean> | boolean;
124
- _writeDelete(id: import("./ResourceInterface.js").Id, options?: any): boolean;
125
- search(target: import("./RequestTarget.js").RequestTarget): AsyncIterable<any>;
126
- subscribe(request: import("./ResourceInterface.js").SubscriptionRequest): Promise<{
127
- listener: (recordId: import("./ResourceInterface.js").Id, auditEntry: any, localTime: number, beginTxn: boolean) => void;
128
- subscriptions: [];
129
- startTime?: number;
130
- includeDescendants?: boolean;
131
- supportsTransactions?: boolean;
132
- onlyChildren?: boolean;
133
- end(): void;
134
- toJSON(): {
135
- name: string;
136
- };
137
- resolveNext: Function;
138
- queue: any[];
139
- hasDataListeners: boolean;
140
- drainCloseListener: boolean;
141
- currentDrainResolver: Function;
142
- push(message: any): void;
143
- send(message: any): void;
144
- getNextMessage(): any;
145
- waitForDrain(): Promise<boolean>;
146
- on(eventName: any, listener: any): /*elided*/ any;
147
- [Symbol.asyncIterator](): {
148
- queue: import("./IterableEventQueue.js").IterableEventQueue;
149
- push(message: any): void;
150
- next(): Promise<unknown> | {
151
- value: any;
152
- };
153
- return(value: any): {
154
- value: any;
155
- done: boolean;
156
- };
157
- throw(error: any): {
158
- done: boolean;
159
- };
160
- };
161
- [EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: string | symbol, ...args: any[]): void;
162
- addListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
163
- once<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
164
- removeListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
165
- off<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
166
- removeAllListeners(eventName?: string | symbol): /*elided*/ any;
167
- setMaxListeners(n: number): /*elided*/ any;
168
- getMaxListeners(): number;
169
- listeners<K>(eventName: string | symbol): Function[];
170
- rawListeners<K>(eventName: string | symbol): Function[];
171
- emit<K>(eventName: string | symbol, ...args: any[]): boolean;
172
- listenerCount<K>(eventName: string | symbol, listener?: Function): number;
173
- prependListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
174
- prependOnceListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
175
- eventNames(): (string | symbol)[];
176
- }>;
177
- doesExist(): boolean;
178
- publish(target: import("./RequestTarget.js").RequestTarget, message: any, options?: any): void;
179
- _writePublish(id: import("./ResourceInterface.js").Id, message: any, options?: any): void;
180
- validate(record: any, patch?: boolean): void;
181
- getUpdatedTime(): number;
182
- wasLoadedFromSource(): boolean | void;
183
- readonly #id: import("./ResourceInterface.js").Id;
184
- readonly #context: import("./ResourceInterface.js").Context;
185
- #isCollection: boolean;
186
- post(newRecord: any): Promise<any>;
187
- get isCollection(): boolean;
188
- connect(incomingMessages: import("./IterableEventQueue.js").IterableEventQueue, query?: {}): AsyncIterable<any>;
189
- getId(): import("./ResourceInterface.js").Id;
190
- getContext(): import("./ResourceInterface.js").Context;
191
- };
192
- name: any;
193
- primaryStore: any;
194
- auditStore: any;
195
- primaryKey: any;
196
- tableName: any;
197
- tableId: any;
198
- indices: any;
199
- audit: any;
200
- databasePath: any;
201
- databaseName: any;
202
- attributes: any;
203
- replicate: any;
204
- sealed: any;
205
- splitSegments: any;
206
- createdTimeProperty: import("./Table.ts").Attribute;
207
- updatedTimeProperty: import("./Table.ts").Attribute;
208
- propertyResolvers: any;
209
- userResolvers: {};
210
- sources: (/*elided*/ any)[];
211
- sourceOptions: any;
212
- intermediateSource: boolean;
213
- getResidencyById: (id: import("./ResourceInterface.js").Id) => number | void;
214
- get expirationMS(): any;
215
- dbisDB: any;
216
- schemaDefined: any;
217
- sourcedFrom(source: any, options: any): /*elided*/ any;
218
- get isCaching(): any;
219
- get shouldRevalidateEvents(): boolean;
220
- getResource(id: import("./ResourceInterface.js").Id, request: import("./ResourceInterface.js").Context, resourceOptions?: any): Promise<{
221
- #record: any;
222
- #changes: any;
223
- #version?: number;
224
- #entry?: import("./RecordEncoder.ts").Entry;
225
- #saveMode?: boolean;
226
- #loadedFromSource?: boolean;
227
- getProperty: (name: string) => any;
228
- ensureLoaded(): unknown;
229
- get(target?: import("./RequestTarget.js").RequestTarget): Promise<object | void>;
230
- allowRead(user: any, target: import("./RequestTarget.js").RequestTarget): boolean;
231
- allowUpdate(user: any, updatedData: any, target: import("./RequestTarget.js").RequestTarget): boolean;
232
- allowCreate(user: any, newData: any, target: import("./RequestTarget.js").RequestTarget): boolean;
233
- allowDelete(user: any, target: import("./RequestTarget.js").RequestTarget): boolean;
234
- update(target: import("./RequestTarget.js").RequestTarget, updates?: any): /*elided*/ any | {
235
- set: (property: string, value: any) => void;
236
- getProperty: (property: string) => any;
237
- getUpdatedTime(): number;
238
- getExpiresAt(): number;
239
- addTo(property: string, value: number | bigint): void;
240
- subtractFrom(property: string, value: number | bigint): void;
241
- #record: any;
242
- #changes: any;
243
- getRecord(): any;
244
- setRecord(record: any): void;
245
- getChanges(): any;
246
- _setChanges(changes: any): void;
247
- };
248
- addTo(property: any, value: any): void;
249
- subtractFrom(property: any, value: any): void;
250
- getMetadata(): import("./RecordEncoder.ts").Entry;
251
- getRecord(): any;
252
- getChanges(): any;
253
- _setChanges(changes: any): void;
254
- setRecord(record: any): void;
255
- invalidate(target: import("./ResourceInterface.js").RequestTargetOrId): void;
256
- _writeInvalidate(id: import("./ResourceInterface.js").Id, partialRecord?: any, options?: any): void;
257
- _writeRelocate(id: import("./ResourceInterface.js").Id, options: any): void;
258
- lock(): void;
259
- put(target: import("./RequestTarget.js").RequestTarget, record: any): void | Promise<void>;
260
- create(target: import("./RequestTarget.js").RequestTarget, record: any): void | Promise<void>;
261
- patch(target: import("./RequestTarget.js").RequestTarget, recordUpdate: any): void | Promise<void>;
262
- _writeUpdate(id: import("./ResourceInterface.js").Id, recordUpdate: any, fullUpdate: boolean, options?: any): void;
263
- delete(target: import("./RequestTarget.js").RequestTarget): Promise<boolean> | boolean;
264
- _writeDelete(id: import("./ResourceInterface.js").Id, options?: any): boolean;
265
- search(target: import("./RequestTarget.js").RequestTarget): AsyncIterable<any>;
266
- subscribe(request: import("./ResourceInterface.js").SubscriptionRequest): Promise<{
267
- listener: (recordId: import("./ResourceInterface.js").Id, auditEntry: any, localTime: number, beginTxn: boolean) => void;
268
- subscriptions: [];
269
- startTime?: number;
270
- includeDescendants?: boolean;
271
- supportsTransactions?: boolean;
272
- onlyChildren?: boolean;
273
- end(): void;
274
- toJSON(): {
275
- name: string;
276
- };
277
- resolveNext: Function;
278
- queue: any[];
279
- hasDataListeners: boolean;
280
- drainCloseListener: boolean;
281
- currentDrainResolver: Function;
282
- push(message: any): void;
283
- send(message: any): void;
284
- getNextMessage(): any;
285
- waitForDrain(): Promise<boolean>;
286
- on(eventName: any, listener: any): /*elided*/ any;
287
- [Symbol.asyncIterator](): {
288
- queue: import("./IterableEventQueue.js").IterableEventQueue;
289
- push(message: any): void;
290
- next(): Promise<unknown> | {
291
- value: any;
292
- };
293
- return(value: any): {
294
- value: any;
295
- done: boolean;
296
- };
297
- throw(error: any): {
298
- done: boolean;
299
- };
300
- };
301
- [EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: string | symbol, ...args: any[]): void;
302
- addListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
303
- once<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
304
- removeListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
305
- off<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
306
- removeAllListeners(eventName?: string | symbol): /*elided*/ any;
307
- setMaxListeners(n: number): /*elided*/ any;
308
- getMaxListeners(): number;
309
- listeners<K>(eventName: string | symbol): Function[];
310
- rawListeners<K>(eventName: string | symbol): Function[];
311
- emit<K>(eventName: string | symbol, ...args: any[]): boolean;
312
- listenerCount<K>(eventName: string | symbol, listener?: Function): number;
313
- prependListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
314
- prependOnceListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
315
- eventNames(): (string | symbol)[];
316
- }>;
317
- doesExist(): boolean;
318
- publish(target: import("./RequestTarget.js").RequestTarget, message: any, options?: any): void;
319
- _writePublish(id: import("./ResourceInterface.js").Id, message: any, options?: any): void;
320
- validate(record: any, patch?: boolean): void;
321
- getUpdatedTime(): number;
322
- wasLoadedFromSource(): boolean | void;
323
- readonly #id: import("./ResourceInterface.js").Id;
324
- readonly #context: import("./ResourceInterface.js").Context;
325
- #isCollection: boolean;
326
- post(newRecord: any): Promise<any>;
327
- get isCollection(): boolean;
328
- connect(incomingMessages: import("./IterableEventQueue.js").IterableEventQueue, query?: {}): AsyncIterable<any>;
329
- getId(): import("./ResourceInterface.js").Id;
330
- getContext(): import("./ResourceInterface.js").Context;
331
- }> | {
332
- #record: any;
333
- #changes: any;
334
- #version?: number;
335
- #entry?: import("./RecordEncoder.ts").Entry;
336
- #saveMode?: boolean;
337
- #loadedFromSource?: boolean;
338
- getProperty: (name: string) => any;
339
- ensureLoaded(): unknown;
340
- get(target?: import("./RequestTarget.js").RequestTarget): Promise<object | void>;
341
- allowRead(user: any, target: import("./RequestTarget.js").RequestTarget): boolean;
342
- allowUpdate(user: any, updatedData: any, target: import("./RequestTarget.js").RequestTarget): boolean;
343
- allowCreate(user: any, newData: any, target: import("./RequestTarget.js").RequestTarget): boolean;
344
- allowDelete(user: any, target: import("./RequestTarget.js").RequestTarget): boolean;
345
- update(target: import("./RequestTarget.js").RequestTarget, updates?: any): /*elided*/ any | {
346
- set: (property: string, value: any) => void;
347
- getProperty: (property: string) => any;
348
- getUpdatedTime(): number;
349
- getExpiresAt(): number;
350
- addTo(property: string, value: number | bigint): void;
351
- subtractFrom(property: string, value: number | bigint): void;
352
- #record: any;
353
- #changes: any;
354
- getRecord(): any;
355
- setRecord(record: any): void;
356
- getChanges(): any;
357
- _setChanges(changes: any): void;
358
- };
359
- addTo(property: any, value: any): void;
360
- subtractFrom(property: any, value: any): void;
361
- getMetadata(): import("./RecordEncoder.ts").Entry;
362
- getRecord(): any;
363
- getChanges(): any;
364
- _setChanges(changes: any): void;
365
- setRecord(record: any): void;
366
- invalidate(target: import("./ResourceInterface.js").RequestTargetOrId): void;
367
- _writeInvalidate(id: import("./ResourceInterface.js").Id, partialRecord?: any, options?: any): void;
368
- _writeRelocate(id: import("./ResourceInterface.js").Id, options: any): void;
369
- lock(): void;
370
- put(target: import("./RequestTarget.js").RequestTarget, record: any): void | Promise<void>;
371
- create(target: import("./RequestTarget.js").RequestTarget, record: any): void | Promise<void>;
372
- patch(target: import("./RequestTarget.js").RequestTarget, recordUpdate: any): void | Promise<void>;
373
- _writeUpdate(id: import("./ResourceInterface.js").Id, recordUpdate: any, fullUpdate: boolean, options?: any): void;
374
- delete(target: import("./RequestTarget.js").RequestTarget): Promise<boolean> | boolean;
375
- _writeDelete(id: import("./ResourceInterface.js").Id, options?: any): boolean;
376
- search(target: import("./RequestTarget.js").RequestTarget): AsyncIterable<any>;
377
- subscribe(request: import("./ResourceInterface.js").SubscriptionRequest): Promise<{
378
- listener: (recordId: import("./ResourceInterface.js").Id, auditEntry: any, localTime: number, beginTxn: boolean) => void;
379
- subscriptions: [];
380
- startTime?: number;
381
- includeDescendants?: boolean;
382
- supportsTransactions?: boolean;
383
- onlyChildren?: boolean;
384
- end(): void;
385
- toJSON(): {
386
- name: string;
387
- };
388
- resolveNext: Function;
389
- queue: any[];
390
- hasDataListeners: boolean;
391
- drainCloseListener: boolean;
392
- currentDrainResolver: Function;
393
- push(message: any): void;
394
- send(message: any): void;
395
- getNextMessage(): any;
396
- waitForDrain(): Promise<boolean>;
397
- on(eventName: any, listener: any): /*elided*/ any;
398
- [Symbol.asyncIterator](): {
399
- queue: import("./IterableEventQueue.js").IterableEventQueue;
400
- push(message: any): void;
401
- next(): Promise<unknown> | {
402
- value: any;
403
- };
404
- return(value: any): {
405
- value: any;
406
- done: boolean;
407
- };
408
- throw(error: any): {
409
- done: boolean;
410
- };
411
- };
412
- [EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: string | symbol, ...args: any[]): void;
413
- addListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
414
- once<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
415
- removeListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
416
- off<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
417
- removeAllListeners(eventName?: string | symbol): /*elided*/ any;
418
- setMaxListeners(n: number): /*elided*/ any;
419
- getMaxListeners(): number;
420
- listeners<K>(eventName: string | symbol): Function[];
421
- rawListeners<K>(eventName: string | symbol): Function[];
422
- emit<K>(eventName: string | symbol, ...args: any[]): boolean;
423
- listenerCount<K>(eventName: string | symbol, listener?: Function): number;
424
- prependListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
425
- prependOnceListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
426
- eventNames(): (string | symbol)[];
427
- }>;
428
- doesExist(): boolean;
429
- publish(target: import("./RequestTarget.js").RequestTarget, message: any, options?: any): void;
430
- _writePublish(id: import("./ResourceInterface.js").Id, message: any, options?: any): void;
431
- validate(record: any, patch?: boolean): void;
432
- getUpdatedTime(): number;
433
- wasLoadedFromSource(): boolean | void;
434
- readonly #id: import("./ResourceInterface.js").Id;
435
- readonly #context: import("./ResourceInterface.js").Context;
436
- #isCollection: boolean;
437
- post(newRecord: any): Promise<any>;
438
- get isCollection(): boolean;
439
- connect(incomingMessages: import("./IterableEventQueue.js").IterableEventQueue, query?: {}): AsyncIterable<any>;
440
- getId(): import("./ResourceInterface.js").Id;
441
- getContext(): import("./ResourceInterface.js").Context;
442
- };
443
- _updateResource(resource: any, entry: any): void;
444
- getNewId(): any;
445
- setTTLExpiration(expiration: number | {
446
- expiration: number;
447
- eviction?: number;
448
- scanInterval?: number;
449
- }): void;
450
- getResidencyRecord(id: import("./ResourceInterface.js").Id): any;
451
- setResidency(getResidency?: (record: object, context: import("./ResourceInterface.js").Context) => number | void | string[]): void;
452
- setResidencyById(getResidencyById?: (id: import("./ResourceInterface.js").Id) => number | void): void;
453
- getResidency(record: object, context: import("./ResourceInterface.js").Context): number | void | string[];
454
- enableAuditing(auditEnabled?: boolean): void;
455
- coerceId(id: string): number | string;
456
- dropTable(): Promise<void>;
457
- _recordRelocate(existingEntry: any, entry: any): boolean;
458
- evict(id: any, existingRecord: any, existingVersion: any): Promise<void>;
459
- operation(operation: any, context: any): any;
460
- transformToOrderedSelect(entries: any[], select: (string | import("./ResourceInterface.js").SubSelect)[], sort: import("./ResourceInterface.js").Sort, context: import("./ResourceInterface.js").Context, readTxn: any, transformToRecord: Function): any;
461
- transformEntryForSelect(select: any, context: any, readTxn: any, filtered: any, ensure_loaded?: any, canSkip?: any): (entry: import("./RecordEncoder.ts").Entry) => any;
462
- subscribeOnThisThread(workerIndex: any, options: any): boolean;
463
- addAttributes(attributesToAdd: any): Promise<any>;
464
- removeAttributes(names: string[]): Promise<any>;
465
- getSize(): number;
466
- getAuditSize(): number;
467
- getStorageStats(): {
468
- available: number;
469
- free: number;
470
- size: number;
471
- };
472
- getRecordCount(options?: any): Promise<{
473
- recordCount: number;
474
- estimatedRange: number[];
475
- } | {
476
- recordCount: number;
477
- estimatedRange?: undefined;
478
- }>;
479
- updatedAttributes(): void;
480
- setComputedAttribute(attribute_name: any, resolver: any): void;
481
- deleteHistory(endTime?: number, cleanupDeletedRecords?: boolean): Promise<void>;
482
- getHistory(startTime?: number, endTime?: number): AsyncGenerator<{
483
- id: import("ordered-binary").Key;
484
- localTime: any;
485
- version: any;
486
- type: any;
487
- value: any;
488
- user: import("ordered-binary").Key;
489
- operation: any;
490
- }, void, unknown>;
491
- getHistoryOfRecord(id: any): Promise<any[]>;
492
- cleanup(): void;
493
- transactions: import("./DatabaseTransaction.js").Transaction[] & {
494
- timestamp: number;
495
- };
496
- directURLMapping: boolean;
497
- loadAsInstance: boolean;
498
- get(identifier: import("./ResourceInterface.js").Id, context?: import("./ResourceInterface.js").Context): Promise<import("./Resource.js").Resource>;
499
- get(target: import("./RequestTarget.js").RequestTarget, context?: import("./ResourceInterface.js").Context): Promise<AsyncIterable<object>>;
500
- put: {
501
- (idOrQuery: string | import("./ResourceInterface.js").Id | import("./ResourceInterface.js").Query, dataOrContext?: any, context?: import("./ResourceInterface.js").Context): any;
502
- reliesOnPrototype: boolean;
503
- };
504
- patch: {
505
- (idOrQuery: string | import("./ResourceInterface.js").Id | import("./ResourceInterface.js").Query, dataOrContext?: any, context?: import("./ResourceInterface.js").Context): any;
506
- reliesOnPrototype: boolean;
507
- };
508
- delete(identifier: import("./ResourceInterface.js").Id, context?: import("./ResourceInterface.js").Context): Promise<boolean>;
509
- delete(request: import("./ResourceInterface.js").Context, context?: import("./ResourceInterface.js").Context): Promise<object>;
510
- create(idPrefix: import("./ResourceInterface.js").Id, record: any, context: import("./ResourceInterface.js").Context): Promise<import("./ResourceInterface.js").Id>;
511
- create(record: any, context: import("./ResourceInterface.js").Context): Promise<import("./ResourceInterface.js").Id>;
512
- invalidate: {
513
- (idOrQuery: string | import("./ResourceInterface.js").Id | import("./ResourceInterface.js").Query, dataOrContext?: any, context?: import("./ResourceInterface.js").Context): any;
514
- reliesOnPrototype: boolean;
515
- };
516
- post: {
517
- (idOrQuery: string | import("./ResourceInterface.js").Id | import("./ResourceInterface.js").Query, dataOrContext?: any, context?: import("./ResourceInterface.js").Context): any;
518
- reliesOnPrototype: boolean;
519
- };
520
- update: {
521
- (idOrQuery: string | import("./ResourceInterface.js").Id | import("./ResourceInterface.js").Query, dataOrContext?: any, context?: import("./ResourceInterface.js").Context): any;
522
- reliesOnPrototype: boolean;
523
- };
524
- connect: {
525
- (idOrQuery: string | import("./ResourceInterface.js").Id | import("./ResourceInterface.js").Query, dataOrContext?: any, context?: import("./ResourceInterface.js").Context): any;
526
- reliesOnPrototype: boolean;
527
- };
528
- subscribe(request: import("./ResourceInterface.js").SubscriptionRequest): Promise<AsyncIterable<{
529
- id: any;
530
- operation: string;
531
- value: object;
532
- }>>;
533
- publish: {
534
- (idOrQuery: string | import("./ResourceInterface.js").Id | import("./ResourceInterface.js").Query, dataOrContext?: any, context?: import("./ResourceInterface.js").Context): any;
535
- reliesOnPrototype: boolean;
536
- };
537
- search: {
538
- (idOrQuery: string | import("./ResourceInterface.js").Id | import("./ResourceInterface.js").Query, dataOrContext?: any, context?: import("./ResourceInterface.js").Context): any;
539
- reliesOnPrototype: boolean;
540
- };
541
- query: {
542
- (idOrQuery: string | import("./ResourceInterface.js").Id | import("./ResourceInterface.js").Query, dataOrContext?: any, context?: import("./ResourceInterface.js").Context): any;
543
- reliesOnPrototype: boolean;
544
- };
545
- copy: {
546
- (idOrQuery: string | import("./ResourceInterface.js").Id | import("./ResourceInterface.js").Query, dataOrContext?: any, context?: import("./ResourceInterface.js").Context): any;
547
- reliesOnPrototype: boolean;
548
- };
549
- move: {
550
- (idOrQuery: string | import("./ResourceInterface.js").Id | import("./ResourceInterface.js").Query, dataOrContext?: any, context?: import("./ResourceInterface.js").Context): any;
551
- reliesOnPrototype: boolean;
552
- };
553
- isCollection(resource: any): any;
554
- parseQuery(search: any, query: any): any;
555
- parsePath(path: any, context: any, query: any): any;
556
- };
79
+ export declare function table<TableResourceType>(tableDefinition: TableDefinition): TableResourceType;
557
80
  export declare function dropTableMeta({ table: tableName, database: databaseName }: {
558
81
  table: any;
559
82
  database: any;