@trust0/ridb-core 1.7.30 → 1.7.32
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/build/ridb_core.d.ts +304 -305
- package/build/ridb_core.js +127 -147
- package/build/ridb_core.mjs +127 -147
- package/build/ridb_core_bg.mjs +1 -1
- package/package.json +2 -3
package/build/ridb_core.d.ts
CHANGED
|
@@ -73,70 +73,6 @@ declare enum Errors {
|
|
|
73
73
|
AuthenticationError = 5,
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
/**
|
|
77
|
-
* Represents an IndexDB storage system extending the base storage functionality.
|
|
78
|
-
*
|
|
79
|
-
* @template T - The schema type.
|
|
80
|
-
*/
|
|
81
|
-
declare class IndexDB<T extends SchemaTypeRecord> extends BaseStorage<T> {
|
|
82
|
-
/**
|
|
83
|
-
* Frees the resources used by the in-memory storage.
|
|
84
|
-
*/
|
|
85
|
-
free(): void;
|
|
86
|
-
|
|
87
|
-
static create<SchemasCreate extends SchemaTypeRecord>(
|
|
88
|
-
dbName: string,
|
|
89
|
-
schemas: SchemasCreate,
|
|
90
|
-
): Promise<
|
|
91
|
-
IndexDB<
|
|
92
|
-
SchemasCreate
|
|
93
|
-
>
|
|
94
|
-
>;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Represents an in-memory storage system extending the base storage functionality.
|
|
101
|
-
*
|
|
102
|
-
* @template T - The schema type.
|
|
103
|
-
*/
|
|
104
|
-
declare class InMemory<T extends SchemaTypeRecord> extends BaseStorage<T> {
|
|
105
|
-
/**
|
|
106
|
-
* Frees the resources used by the in-memory storage.
|
|
107
|
-
*/
|
|
108
|
-
free(): void;
|
|
109
|
-
|
|
110
|
-
static create<SchemasCreate extends SchemaTypeRecord>(
|
|
111
|
-
dbName: string,
|
|
112
|
-
schemas: SchemasCreate,
|
|
113
|
-
): Promise<
|
|
114
|
-
InMemory<
|
|
115
|
-
SchemasCreate
|
|
116
|
-
>
|
|
117
|
-
>;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
type Hook = (
|
|
123
|
-
schema: Schema<SchemaType>,
|
|
124
|
-
migration: MigrationPathsForSchema<SchemaType>,
|
|
125
|
-
doc: Doc<SchemaType>
|
|
126
|
-
) => Doc<SchemaType>
|
|
127
|
-
|
|
128
|
-
type BasePluginOptions = {
|
|
129
|
-
docCreateHook?: Hook,
|
|
130
|
-
docRecoverHook?: Hook
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
declare class BasePlugin implements BasePluginOptions {
|
|
134
|
-
docCreateHook?:Hook;
|
|
135
|
-
docRecoverHook?:Hook;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
76
|
/**
|
|
141
77
|
* Represents the type definition for a schema.
|
|
142
78
|
*/
|
|
@@ -293,103 +229,50 @@ type MigrationsParameter<
|
|
|
293
229
|
|
|
294
230
|
|
|
295
231
|
|
|
296
|
-
type
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
$eq?: T,
|
|
302
|
-
$ne?: T
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
type InOperator<T> = { $in?: T[] };
|
|
306
|
-
type NInOperator<T> = { $nin?: T[] };
|
|
307
|
-
|
|
308
|
-
type OperatorOrType<T> = T extends number ?
|
|
309
|
-
T | Operators<T> | InOperator<T> | NInOperator<T> :
|
|
310
|
-
T | InOperator<T> | NInOperator<T>;
|
|
311
|
-
|
|
312
|
-
type LogicalOperators<T extends SchemaType> = {
|
|
313
|
-
$and?: Partial<QueryType<T>>[];
|
|
314
|
-
$or?: Partial<QueryType<T>>[];
|
|
315
|
-
};
|
|
316
|
-
|
|
317
|
-
type QueryType<T extends SchemaType> = ({
|
|
318
|
-
[K in keyof T['properties']as ExtractType<T['properties'][K]['type']> extends undefined ? never : K]?: OperatorOrType<
|
|
319
|
-
ExtractType<
|
|
320
|
-
T['properties'][K]['type']
|
|
321
|
-
>
|
|
322
|
-
>
|
|
323
|
-
} & LogicalOperators<T>) | LogicalOperators<T>[];
|
|
232
|
+
type Hook = (
|
|
233
|
+
schema: Schema<SchemaType>,
|
|
234
|
+
migration: MigrationPathsForSchema<SchemaType>,
|
|
235
|
+
doc: Doc<SchemaType>
|
|
236
|
+
) => Doc<SchemaType>
|
|
324
237
|
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
238
|
+
type BasePluginOptions = {
|
|
239
|
+
docCreateHook?: Hook,
|
|
240
|
+
docRecoverHook?: Hook
|
|
328
241
|
}
|
|
329
242
|
|
|
243
|
+
declare class BasePlugin implements BasePluginOptions {
|
|
244
|
+
docCreateHook?:Hook;
|
|
245
|
+
docRecoverHook?:Hook;
|
|
246
|
+
}
|
|
330
247
|
|
|
331
248
|
|
|
332
|
-
/**
|
|
333
|
-
* Represents a property within a schema, including various constraints and nested properties.
|
|
334
|
-
*/
|
|
335
|
-
declare class Property {
|
|
336
|
-
/**
|
|
337
|
-
* The type of the property.
|
|
338
|
-
*/
|
|
339
|
-
readonly type: SchemaFieldType;
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* The version of the property, if applicable.
|
|
343
|
-
*/
|
|
344
|
-
readonly version?: number;
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* The primary key of the property, if applicable.
|
|
348
|
-
*/
|
|
349
|
-
readonly primaryKey?: string;
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* An optional array of nested properties for array-type properties.
|
|
353
|
-
*/
|
|
354
|
-
readonly items?: Property;
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* The maximum number of items for array-type properties, if applicable.
|
|
358
|
-
*/
|
|
359
|
-
readonly maxItems?: number;
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* The minimum number of items for array-type properties, if applicable.
|
|
363
|
-
*/
|
|
364
|
-
readonly minItems?: number;
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* The maximum length for string-type properties, if applicable.
|
|
368
|
-
*/
|
|
369
|
-
readonly maxLength?: number;
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* The minimum length for string-type properties, if applicable.
|
|
373
|
-
*/
|
|
374
|
-
readonly minLength?: number;
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* An optional array of required fields for object-type properties.
|
|
378
|
-
*/
|
|
379
|
-
readonly required?: boolean;
|
|
380
|
-
|
|
381
|
-
/**
|
|
382
|
-
* An optional default value for the property.
|
|
383
|
-
*/
|
|
384
|
-
readonly default?: any;
|
|
385
249
|
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
250
|
+
declare const SchemaFieldType = {
|
|
251
|
+
/**
|
|
252
|
+
* String type for text data
|
|
253
|
+
*/
|
|
254
|
+
string: 'string' as const,
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Number type for numeric data (integers and floats)
|
|
258
|
+
*/
|
|
259
|
+
number: 'number' as const,
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Boolean type for true/false values
|
|
263
|
+
*/
|
|
264
|
+
boolean: 'boolean' as const,
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Array type for ordered collections of items
|
|
268
|
+
*/
|
|
269
|
+
array: 'array' as const,
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Object type for nested document structures
|
|
273
|
+
*/
|
|
274
|
+
object: 'object' as const,
|
|
275
|
+
};
|
|
393
276
|
|
|
394
277
|
|
|
395
278
|
|
|
@@ -512,42 +395,198 @@ declare class Collection<T extends SchemaType> {
|
|
|
512
395
|
|
|
513
396
|
|
|
514
397
|
|
|
515
|
-
|
|
398
|
+
type BaseStorageOptions = {
|
|
399
|
+
[name:string]:string | boolean | number
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
declare class BaseStorage<Schemas extends SchemaTypeRecord> extends StorageInternal<Schemas> {
|
|
403
|
+
static create<SchemasCreate extends SchemaTypeRecord>(
|
|
404
|
+
dbName: string,
|
|
405
|
+
schemas: SchemasCreate,
|
|
406
|
+
options?: BaseStorageOptions
|
|
407
|
+
): Promise<
|
|
408
|
+
BaseStorage<
|
|
409
|
+
SchemasCreate
|
|
410
|
+
>
|
|
411
|
+
>;
|
|
412
|
+
constructor(
|
|
413
|
+
dbName: string,
|
|
414
|
+
schemas: Schemas,
|
|
415
|
+
options?: BaseStorageOptions
|
|
416
|
+
);
|
|
417
|
+
readonly dbName: string;
|
|
418
|
+
readonly schemas: Record<keyof Schemas, Schema<Schemas[keyof Schemas]>>;
|
|
419
|
+
readonly options: BaseStorageOptions;
|
|
420
|
+
readonly core: CoreStorage;
|
|
421
|
+
start(): Promise<void>;
|
|
422
|
+
close(): Promise<void>;
|
|
423
|
+
count(colectionName: keyof Schemas, query: QueryType<Schemas[keyof Schemas]>, options?: QueryOptions): Promise<number>;
|
|
424
|
+
findDocumentById(collectionName: keyof Schemas, id: string): Promise<Doc<Schemas[keyof Schemas]> | null>;
|
|
425
|
+
find(collectionName: keyof Schemas, query: QueryType<Schemas[keyof Schemas]>, options?: QueryOptions): Promise<Doc<Schemas[keyof Schemas]>[]>;
|
|
426
|
+
write(op: Operation<Schemas[keyof Schemas]>): Promise<Doc<Schemas[keyof Schemas]>>;
|
|
427
|
+
getOption(name: string): string | boolean | number | undefined;
|
|
428
|
+
getSchema(name: string): Schema<any>;
|
|
429
|
+
//Call addIndexSchemas if you need extra indexing schemas for your database
|
|
430
|
+
addIndexSchemas(): null
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Represents an IndexDB storage system extending the base storage functionality.
|
|
437
|
+
*
|
|
438
|
+
* @template T - The schema type.
|
|
439
|
+
*/
|
|
440
|
+
declare class IndexDB<T extends SchemaTypeRecord> extends BaseStorage<T> {
|
|
441
|
+
/**
|
|
442
|
+
* Frees the resources used by the in-memory storage.
|
|
443
|
+
*/
|
|
444
|
+
free(): void;
|
|
445
|
+
|
|
446
|
+
static create<SchemasCreate extends SchemaTypeRecord>(
|
|
447
|
+
dbName: string,
|
|
448
|
+
schemas: SchemasCreate,
|
|
449
|
+
): Promise<
|
|
450
|
+
IndexDB<
|
|
451
|
+
SchemasCreate
|
|
452
|
+
>
|
|
453
|
+
>;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
type Operators<T> = {
|
|
459
|
+
$gte?: number,
|
|
460
|
+
$gt?: number
|
|
461
|
+
$lt?: number,
|
|
462
|
+
$lte?: number,
|
|
463
|
+
$eq?: T,
|
|
464
|
+
$ne?: T
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
type InOperator<T> = { $in?: T[] };
|
|
468
|
+
type NInOperator<T> = { $nin?: T[] };
|
|
469
|
+
|
|
470
|
+
type OperatorOrType<T> = T extends number ?
|
|
471
|
+
T | Operators<T> | InOperator<T> | NInOperator<T> :
|
|
472
|
+
T | InOperator<T> | NInOperator<T>;
|
|
473
|
+
|
|
474
|
+
type LogicalOperators<T extends SchemaType> = {
|
|
475
|
+
$and?: Partial<QueryType<T>>[];
|
|
476
|
+
$or?: Partial<QueryType<T>>[];
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
type QueryType<T extends SchemaType> = ({
|
|
480
|
+
[K in keyof T['properties']as ExtractType<T['properties'][K]['type']> extends undefined ? never : K]?: OperatorOrType<
|
|
481
|
+
ExtractType<
|
|
482
|
+
T['properties'][K]['type']
|
|
483
|
+
>
|
|
484
|
+
>
|
|
485
|
+
} & LogicalOperators<T>) | LogicalOperators<T>[];
|
|
486
|
+
|
|
487
|
+
declare class Query<T extends SchemaType> {
|
|
488
|
+
constructor(query: QueryType<T>, schema:Schema<T>);
|
|
489
|
+
readonly query: QueryType<T>;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Represents a property within a schema, including various constraints and nested properties.
|
|
496
|
+
*/
|
|
497
|
+
declare class Property {
|
|
498
|
+
/**
|
|
499
|
+
* The type of the property.
|
|
500
|
+
*/
|
|
501
|
+
readonly type: SchemaFieldType;
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* The version of the property, if applicable.
|
|
505
|
+
*/
|
|
506
|
+
readonly version?: number;
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* The primary key of the property, if applicable.
|
|
510
|
+
*/
|
|
511
|
+
readonly primaryKey?: string;
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* An optional array of nested properties for array-type properties.
|
|
515
|
+
*/
|
|
516
|
+
readonly items?: Property;
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* The maximum number of items for array-type properties, if applicable.
|
|
520
|
+
*/
|
|
521
|
+
readonly maxItems?: number;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* The minimum number of items for array-type properties, if applicable.
|
|
525
|
+
*/
|
|
526
|
+
readonly minItems?: number;
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* The maximum length for string-type properties, if applicable.
|
|
530
|
+
*/
|
|
531
|
+
readonly maxLength?: number;
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* The minimum length for string-type properties, if applicable.
|
|
535
|
+
*/
|
|
536
|
+
readonly minLength?: number;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* An optional array of required fields for object-type properties.
|
|
540
|
+
*/
|
|
541
|
+
readonly required?: boolean;
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* An optional default value for the property.
|
|
545
|
+
*/
|
|
546
|
+
readonly default?: any;
|
|
547
|
+
|
|
516
548
|
/**
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
getPrimaryKeyTyped(value: any): string | number;
|
|
523
|
-
getIndexes(schema: Schema<any>, op: Operation): string[];
|
|
549
|
+
* An optional map of nested properties for object-type properties.
|
|
550
|
+
*/
|
|
551
|
+
readonly properties?: {
|
|
552
|
+
[name: string]: Property;
|
|
553
|
+
};
|
|
524
554
|
}
|
|
525
555
|
|
|
526
556
|
|
|
527
557
|
|
|
528
558
|
/**
|
|
529
|
-
* Represents an
|
|
559
|
+
* Represents an in-memory storage system extending the base storage functionality.
|
|
530
560
|
*
|
|
531
|
-
* @template T - The schema type
|
|
561
|
+
* @template T - The schema type.
|
|
532
562
|
*/
|
|
533
|
-
|
|
563
|
+
declare class InMemory<T extends SchemaTypeRecord> extends BaseStorage<T> {
|
|
534
564
|
/**
|
|
535
|
-
*
|
|
565
|
+
* Frees the resources used by the in-memory storage.
|
|
536
566
|
*/
|
|
537
|
-
|
|
567
|
+
free(): void;
|
|
538
568
|
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
569
|
+
static create<SchemasCreate extends SchemaTypeRecord>(
|
|
570
|
+
dbName: string,
|
|
571
|
+
schemas: SchemasCreate,
|
|
572
|
+
): Promise<
|
|
573
|
+
InMemory<
|
|
574
|
+
SchemasCreate
|
|
575
|
+
>
|
|
576
|
+
>;
|
|
577
|
+
}
|
|
543
578
|
|
|
544
|
-
/**
|
|
545
|
-
* The data involved in the operation, conforming to the schema type.
|
|
546
|
-
*/
|
|
547
|
-
data: Doc<T>,
|
|
548
579
|
|
|
549
|
-
|
|
550
|
-
|
|
580
|
+
|
|
581
|
+
declare class CoreStorage {
|
|
582
|
+
/**
|
|
583
|
+
* @param {any} document
|
|
584
|
+
* @param {Query} query
|
|
585
|
+
* @returns {boolean}
|
|
586
|
+
*/
|
|
587
|
+
matchesQuery(document: any, query: Query<any>): boolean;
|
|
588
|
+
getPrimaryKeyTyped(value: any): string | number;
|
|
589
|
+
getIndexes(schema: Schema<any>, op: Operation): string[];
|
|
551
590
|
}
|
|
552
591
|
|
|
553
592
|
|
|
@@ -656,32 +695,30 @@ type RIDBModule = {
|
|
|
656
695
|
|
|
657
696
|
|
|
658
697
|
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
object: 'object' as const,
|
|
684
|
-
};
|
|
698
|
+
/**
|
|
699
|
+
* Represents an operation to be performed on a collection.
|
|
700
|
+
*
|
|
701
|
+
* @template T - The schema type of the collection.
|
|
702
|
+
*/
|
|
703
|
+
type Operation<T extends SchemaType = SchemaType> = {
|
|
704
|
+
/**
|
|
705
|
+
* The name of the collection on which the operation will be performed.
|
|
706
|
+
*/
|
|
707
|
+
collection: string,
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* The type of operation to be performed (e.g., CREATE, UPDATE, DELETE).
|
|
711
|
+
*/
|
|
712
|
+
opType: OpType,
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* The data involved in the operation, conforming to the schema type.
|
|
716
|
+
*/
|
|
717
|
+
data: Doc<T>,
|
|
718
|
+
|
|
719
|
+
primaryKeyField?: string,
|
|
720
|
+
primaryKey?: string
|
|
721
|
+
}
|
|
685
722
|
|
|
686
723
|
|
|
687
724
|
|
|
@@ -719,43 +756,6 @@ declare abstract class StorageInternal<Schemas extends SchemaTypeRecord> {
|
|
|
719
756
|
): Promise<Doc<Schemas[keyof Schemas]>>;
|
|
720
757
|
}
|
|
721
758
|
|
|
722
|
-
|
|
723
|
-
type BaseStorageOptions = {
|
|
724
|
-
[name:string]:string | boolean | number
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
declare class BaseStorage<Schemas extends SchemaTypeRecord> extends StorageInternal<Schemas> {
|
|
728
|
-
static create<SchemasCreate extends SchemaTypeRecord>(
|
|
729
|
-
dbName: string,
|
|
730
|
-
schemas: SchemasCreate,
|
|
731
|
-
options?: BaseStorageOptions
|
|
732
|
-
): Promise<
|
|
733
|
-
BaseStorage<
|
|
734
|
-
SchemasCreate
|
|
735
|
-
>
|
|
736
|
-
>;
|
|
737
|
-
constructor(
|
|
738
|
-
dbName: string,
|
|
739
|
-
schemas: Schemas,
|
|
740
|
-
options?: BaseStorageOptions
|
|
741
|
-
);
|
|
742
|
-
readonly dbName: string;
|
|
743
|
-
readonly schemas: Record<keyof Schemas, Schema<Schemas[keyof Schemas]>>;
|
|
744
|
-
readonly options: BaseStorageOptions;
|
|
745
|
-
readonly core: CoreStorage;
|
|
746
|
-
start(): Promise<void>;
|
|
747
|
-
close(): Promise<void>;
|
|
748
|
-
count(colectionName: keyof Schemas, query: QueryType<Schemas[keyof Schemas]>, options?: QueryOptions): Promise<number>;
|
|
749
|
-
findDocumentById(collectionName: keyof Schemas, id: string): Promise<Doc<Schemas[keyof Schemas]> | null>;
|
|
750
|
-
find(collectionName: keyof Schemas, query: QueryType<Schemas[keyof Schemas]>, options?: QueryOptions): Promise<Doc<Schemas[keyof Schemas]>[]>;
|
|
751
|
-
write(op: Operation<Schemas[keyof Schemas]>): Promise<Doc<Schemas[keyof Schemas]>>;
|
|
752
|
-
getOption(name: string): string | boolean | number | undefined;
|
|
753
|
-
getSchema(name: string): Schema<any>;
|
|
754
|
-
//Call addIndexSchemas if you need extra indexing schemas for your database
|
|
755
|
-
addIndexSchemas(): null
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
|
|
759
759
|
/**
|
|
760
760
|
*/
|
|
761
761
|
declare class RIDBError {
|
|
@@ -867,6 +867,44 @@ type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Modul
|
|
|
867
867
|
|
|
868
868
|
interface InitOutput {
|
|
869
869
|
readonly memory: WebAssembly.Memory;
|
|
870
|
+
readonly __wbg_schema_free: (a: number) => void;
|
|
871
|
+
readonly schema_validate: (a: number, b: number, c: number) => void;
|
|
872
|
+
readonly schema_is_valid: (a: number, b: number) => void;
|
|
873
|
+
readonly schema_create: (a: number, b: number) => void;
|
|
874
|
+
readonly schema_version: (a: number) => number;
|
|
875
|
+
readonly schema_primaryKey: (a: number, b: number) => void;
|
|
876
|
+
readonly schema_type: (a: number, b: number) => void;
|
|
877
|
+
readonly schema_indexes: (a: number, b: number) => void;
|
|
878
|
+
readonly schema_encrypted: (a: number, b: number) => void;
|
|
879
|
+
readonly schema_properties: (a: number, b: number) => void;
|
|
880
|
+
readonly __wbgt_test_schema_creation_3: (a: number) => void;
|
|
881
|
+
readonly __wbgt_test_schema_validation_4: (a: number) => void;
|
|
882
|
+
readonly __wbgt_test_invalid_schema_5: (a: number) => void;
|
|
883
|
+
readonly __wbg_baseplugin_free: (a: number) => void;
|
|
884
|
+
readonly baseplugin_new: (a: number, b: number, c: number) => void;
|
|
885
|
+
readonly baseplugin_name: (a: number) => number;
|
|
886
|
+
readonly baseplugin_get_doc_create_hook: (a: number) => number;
|
|
887
|
+
readonly baseplugin_get_doc_recover_hook: (a: number) => number;
|
|
888
|
+
readonly baseplugin_set_doc_create_hook: (a: number, b: number) => void;
|
|
889
|
+
readonly baseplugin_set_doc_recover_hook: (a: number, b: number) => void;
|
|
890
|
+
readonly __wbg_collection_free: (a: number) => void;
|
|
891
|
+
readonly collection_name: (a: number, b: number) => void;
|
|
892
|
+
readonly collection_schema: (a: number, b: number) => void;
|
|
893
|
+
readonly collection_find: (a: number, b: number, c: number) => number;
|
|
894
|
+
readonly collection_parse_query_options: (a: number, b: number, c: number) => void;
|
|
895
|
+
readonly collection_count: (a: number, b: number, c: number) => number;
|
|
896
|
+
readonly collection_findById: (a: number, b: number) => number;
|
|
897
|
+
readonly collection_update: (a: number, b: number) => number;
|
|
898
|
+
readonly collection_create: (a: number, b: number) => number;
|
|
899
|
+
readonly collection_delete: (a: number, b: number) => number;
|
|
900
|
+
readonly __wbg_basestorage_free: (a: number) => void;
|
|
901
|
+
readonly basestorage_new: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
902
|
+
readonly basestorage_addIndexSchemas: (a: number, b: number) => void;
|
|
903
|
+
readonly basestorage_getOption: (a: number, b: number, c: number, d: number) => void;
|
|
904
|
+
readonly basestorage_getSchema: (a: number, b: number, c: number, d: number) => void;
|
|
905
|
+
readonly basestorage_core: (a: number, b: number) => void;
|
|
906
|
+
readonly main_js: () => void;
|
|
907
|
+
readonly is_debug_mode: () => number;
|
|
870
908
|
readonly __wbg_ridberror_free: (a: number) => void;
|
|
871
909
|
readonly ridberror_new: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
872
910
|
readonly ridberror_type: (a: number, b: number) => void;
|
|
@@ -889,34 +927,9 @@ interface InitOutput {
|
|
|
889
927
|
readonly indexdb_count: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
890
928
|
readonly indexdb_close: (a: number) => number;
|
|
891
929
|
readonly indexdb_start: (a: number) => number;
|
|
892
|
-
readonly
|
|
893
|
-
readonly
|
|
894
|
-
readonly
|
|
895
|
-
readonly inmemory_find: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
896
|
-
readonly inmemory_findDocumentById: (a: number, b: number, c: number, d: number) => number;
|
|
897
|
-
readonly inmemory_count: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
898
|
-
readonly inmemory_close: (a: number) => number;
|
|
899
|
-
readonly inmemory_start: (a: number) => number;
|
|
900
|
-
readonly __wbg_baseplugin_free: (a: number) => void;
|
|
901
|
-
readonly baseplugin_new: (a: number, b: number, c: number) => void;
|
|
902
|
-
readonly baseplugin_name: (a: number) => number;
|
|
903
|
-
readonly baseplugin_get_doc_create_hook: (a: number) => number;
|
|
904
|
-
readonly baseplugin_get_doc_recover_hook: (a: number) => number;
|
|
905
|
-
readonly baseplugin_set_doc_create_hook: (a: number, b: number) => void;
|
|
906
|
-
readonly baseplugin_set_doc_recover_hook: (a: number, b: number) => void;
|
|
907
|
-
readonly __wbg_schema_free: (a: number) => void;
|
|
908
|
-
readonly schema_validate: (a: number, b: number, c: number) => void;
|
|
909
|
-
readonly schema_is_valid: (a: number, b: number) => void;
|
|
910
|
-
readonly schema_create: (a: number, b: number) => void;
|
|
911
|
-
readonly schema_version: (a: number) => number;
|
|
912
|
-
readonly schema_primaryKey: (a: number, b: number) => void;
|
|
913
|
-
readonly schema_type: (a: number, b: number) => void;
|
|
914
|
-
readonly schema_indexes: (a: number, b: number) => void;
|
|
915
|
-
readonly schema_encrypted: (a: number, b: number) => void;
|
|
916
|
-
readonly schema_properties: (a: number, b: number) => void;
|
|
917
|
-
readonly __wbgt_test_schema_creation_3: (a: number) => void;
|
|
918
|
-
readonly __wbgt_test_schema_validation_4: (a: number) => void;
|
|
919
|
-
readonly __wbgt_test_invalid_schema_5: (a: number) => void;
|
|
930
|
+
readonly __wbg_queryoptions_free: (a: number) => void;
|
|
931
|
+
readonly queryoptions_limit: (a: number, b: number) => void;
|
|
932
|
+
readonly queryoptions_offset: (a: number, b: number) => void;
|
|
920
933
|
readonly __wbg_query_free: (a: number) => void;
|
|
921
934
|
readonly query_new: (a: number, b: number, c: number) => void;
|
|
922
935
|
readonly query_query: (a: number, b: number) => void;
|
|
@@ -965,23 +978,24 @@ interface InitOutput {
|
|
|
965
978
|
readonly __wbgt_test_property_creation_0: (a: number) => void;
|
|
966
979
|
readonly __wbgt_test_property_validation_1: (a: number) => void;
|
|
967
980
|
readonly __wbgt_test_invalid_property_2: (a: number) => void;
|
|
968
|
-
readonly
|
|
969
|
-
readonly
|
|
970
|
-
readonly
|
|
971
|
-
readonly
|
|
972
|
-
readonly
|
|
973
|
-
readonly
|
|
974
|
-
readonly
|
|
975
|
-
readonly
|
|
976
|
-
readonly collection_create: (a: number, b: number) => number;
|
|
977
|
-
readonly collection_delete: (a: number, b: number) => number;
|
|
978
|
-
readonly corestorage_new: () => number;
|
|
981
|
+
readonly __wbg_inmemory_free: (a: number) => void;
|
|
982
|
+
readonly inmemory_create: (a: number, b: number, c: number) => number;
|
|
983
|
+
readonly inmemory_write: (a: number, b: number) => number;
|
|
984
|
+
readonly inmemory_find: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
985
|
+
readonly inmemory_findDocumentById: (a: number, b: number, c: number, d: number) => number;
|
|
986
|
+
readonly inmemory_count: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
987
|
+
readonly inmemory_close: (a: number) => number;
|
|
988
|
+
readonly inmemory_start: (a: number) => number;
|
|
979
989
|
readonly corestorage_getPrimaryKeyTyped: (a: number, b: number, c: number) => void;
|
|
980
990
|
readonly corestorage_getIndexes: (a: number, b: number, c: number, d: number) => void;
|
|
981
991
|
readonly corestorage_matchesQuery: (a: number, b: number, c: number, d: number) => void;
|
|
982
|
-
readonly
|
|
983
|
-
readonly
|
|
984
|
-
readonly
|
|
992
|
+
readonly __wbg_database_free: (a: number) => void;
|
|
993
|
+
readonly database_start: (a: number) => number;
|
|
994
|
+
readonly database_close: (a: number) => number;
|
|
995
|
+
readonly database_started: (a: number) => number;
|
|
996
|
+
readonly database_authenticate: (a: number, b: number, c: number) => number;
|
|
997
|
+
readonly database_collections: (a: number, b: number) => void;
|
|
998
|
+
readonly database_create: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
985
999
|
readonly __wbg_operation_free: (a: number) => void;
|
|
986
1000
|
readonly operation_collection: (a: number, b: number) => void;
|
|
987
1001
|
readonly operation_opType: (a: number) => number;
|
|
@@ -989,22 +1003,8 @@ interface InitOutput {
|
|
|
989
1003
|
readonly operation_primaryKeyField: (a: number) => number;
|
|
990
1004
|
readonly operation_primaryKey: (a: number) => number;
|
|
991
1005
|
readonly operation_primaryKeyIndex: (a: number, b: number) => void;
|
|
1006
|
+
readonly corestorage_new: () => number;
|
|
992
1007
|
readonly __wbg_corestorage_free: (a: number) => void;
|
|
993
|
-
readonly __wbg_database_free: (a: number) => void;
|
|
994
|
-
readonly database_start: (a: number) => number;
|
|
995
|
-
readonly database_close: (a: number) => number;
|
|
996
|
-
readonly database_started: (a: number) => number;
|
|
997
|
-
readonly database_authenticate: (a: number, b: number, c: number) => number;
|
|
998
|
-
readonly database_collections: (a: number, b: number) => void;
|
|
999
|
-
readonly database_create: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
1000
|
-
readonly main_js: () => void;
|
|
1001
|
-
readonly is_debug_mode: () => number;
|
|
1002
|
-
readonly __wbg_basestorage_free: (a: number) => void;
|
|
1003
|
-
readonly basestorage_new: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1004
|
-
readonly basestorage_addIndexSchemas: (a: number, b: number) => void;
|
|
1005
|
-
readonly basestorage_getOption: (a: number, b: number, c: number, d: number) => void;
|
|
1006
|
-
readonly basestorage_getSchema: (a: number, b: number, c: number, d: number) => void;
|
|
1007
|
-
readonly basestorage_core: (a: number, b: number) => void;
|
|
1008
1008
|
readonly __wbg_wasmbindgentestcontext_free: (a: number) => void;
|
|
1009
1009
|
readonly wasmbindgentestcontext_new: () => number;
|
|
1010
1010
|
readonly wasmbindgentestcontext_args: (a: number, b: number, c: number) => void;
|
|
@@ -1017,16 +1017,15 @@ interface InitOutput {
|
|
|
1017
1017
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
1018
1018
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
1019
1019
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
1020
|
+
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hcf4fe6fd0b7ccc8d: (a: number, b: number, c: number) => void;
|
|
1020
1021
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
1021
|
-
readonly
|
|
1022
|
-
readonly
|
|
1023
|
-
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hec0cc069f718ed78: (a: number, b: number) => void;
|
|
1024
|
-
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf401bdfdf8c9bdd9: (a: number, b: number, c: number) => void;
|
|
1022
|
+
readonly _dyn_core__ops__function__Fn__A_B_C___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he6024291054ff5aa: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1023
|
+
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb6eb1f8e3b5e56e9: (a: number, b: number, c: number) => void;
|
|
1025
1024
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
1026
1025
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
1027
|
-
readonly
|
|
1028
|
-
readonly
|
|
1029
|
-
readonly
|
|
1026
|
+
readonly wasm_bindgen__convert__closures__invoke0_mut__hff00333f3d941090: (a: number, b: number) => void;
|
|
1027
|
+
readonly wasm_bindgen__convert__closures__invoke3_mut__h703f9c33fd3008bf: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1028
|
+
readonly wasm_bindgen__convert__closures__invoke2_mut__h97988f5fa0547d24: (a: number, b: number, c: number, d: number) => void;
|
|
1030
1029
|
readonly __wbindgen_start: () => void;
|
|
1031
1030
|
}
|
|
1032
1031
|
|