harperdb 4.7.0-beta.2 → 4.7.0-beta.3

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