diff --git a/README.md b/README.md
index d00e088d..dda30da9 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
-
+
A secure light-weight and dependency free database wrapper for the web.
diff --git a/docs/@trust0/ridb-core/classes/BasePlugin.md b/docs/@trust0/ridb-core/classes/BasePlugin.md
index cde5b883..343e4a61 100644
--- a/docs/@trust0/ridb-core/classes/BasePlugin.md
+++ b/docs/@trust0/ridb-core/classes/BasePlugin.md
@@ -6,7 +6,7 @@
# Class: BasePlugin
-Defined in: ridb\_core.d.ts:579
+Defined in: ridb\_core.d.ts:197
## Implements
@@ -28,7 +28,7 @@ Defined in: ridb\_core.d.ts:579
> `optional` **docCreateHook**: [`Hook`](../type-aliases/Hook.md)
-Defined in: ridb\_core.d.ts:580
+Defined in: ridb\_core.d.ts:198
#### Implementation of
@@ -40,7 +40,7 @@ Defined in: ridb\_core.d.ts:580
> `optional` **docRecoverHook**: [`Hook`](../type-aliases/Hook.md)
-Defined in: ridb\_core.d.ts:581
+Defined in: ridb\_core.d.ts:199
#### Implementation of
diff --git a/docs/@trust0/ridb-core/classes/BaseStorage.md b/docs/@trust0/ridb-core/classes/BaseStorage.md
index 43770fe9..b1bd56cd 100644
--- a/docs/@trust0/ridb-core/classes/BaseStorage.md
+++ b/docs/@trust0/ridb-core/classes/BaseStorage.md
@@ -6,7 +6,7 @@
# Class: BaseStorage\
-Defined in: ridb\_core.d.ts:343
+Defined in: ridb\_core.d.ts:571
## Extends
@@ -14,8 +14,8 @@ Defined in: ridb\_core.d.ts:343
## Extended by
-- [`InMemory`](InMemory.md)
- [`IndexDB`](IndexDB.md)
+- [`InMemory`](InMemory.md)
## Type Parameters
@@ -29,7 +29,7 @@ Defined in: ridb\_core.d.ts:343
> **new BaseStorage**\<`Schemas`\>(`dbName`, `schemas`, `options?`): `BaseStorage`\<`Schemas`\>
-Defined in: ridb\_core.d.ts:353
+Defined in: ridb\_core.d.ts:581
#### Parameters
@@ -59,7 +59,7 @@ Defined in: ridb\_core.d.ts:353
> `readonly` **core**: [`CoreStorage`](CoreStorage.md)
-Defined in: ridb\_core.d.ts:361
+Defined in: ridb\_core.d.ts:589
***
@@ -67,7 +67,7 @@ Defined in: ridb\_core.d.ts:361
> `readonly` **dbName**: `string`
-Defined in: ridb\_core.d.ts:358
+Defined in: ridb\_core.d.ts:586
***
@@ -75,7 +75,7 @@ Defined in: ridb\_core.d.ts:358
> `readonly` **options**: [`BaseStorageOptions`](../type-aliases/BaseStorageOptions.md)
-Defined in: ridb\_core.d.ts:360
+Defined in: ridb\_core.d.ts:588
***
@@ -83,7 +83,7 @@ Defined in: ridb\_core.d.ts:360
> `readonly` **schemas**: `Record`\\>
-Defined in: ridb\_core.d.ts:359
+Defined in: ridb\_core.d.ts:587
## Methods
@@ -91,7 +91,7 @@ Defined in: ridb\_core.d.ts:359
> **addIndexSchemas**(): `null`
-Defined in: ridb\_core.d.ts:371
+Defined in: ridb\_core.d.ts:599
#### Returns
@@ -103,7 +103,7 @@ Defined in: ridb\_core.d.ts:371
> **close**(): `Promise`\<`void`\>
-Defined in: ridb\_core.d.ts:363
+Defined in: ridb\_core.d.ts:591
#### Returns
@@ -119,7 +119,7 @@ Defined in: ridb\_core.d.ts:363
> **count**(`colectionName`, `query`, `options?`): `Promise`\<`number`\>
-Defined in: ridb\_core.d.ts:364
+Defined in: ridb\_core.d.ts:592
#### Parameters
@@ -149,7 +149,7 @@ keyof `Schemas`
> **find**(`collectionName`, `query`, `options?`): `Promise`\<[`Doc`](../type-aliases/Doc.md)\<`Schemas`\[keyof `Schemas`\]\>[]\>
-Defined in: ridb\_core.d.ts:366
+Defined in: ridb\_core.d.ts:594
#### Parameters
@@ -179,7 +179,7 @@ keyof `Schemas`
> **findDocumentById**(`collectionName`, `id`): `Promise`\<`null` \| [`Doc`](../type-aliases/Doc.md)\<`Schemas`\[keyof `Schemas`\]\>\>
-Defined in: ridb\_core.d.ts:365
+Defined in: ridb\_core.d.ts:593
#### Parameters
@@ -205,7 +205,7 @@ keyof `Schemas`
> **getOption**(`name`): `undefined` \| `string` \| `number` \| `boolean`
-Defined in: ridb\_core.d.ts:368
+Defined in: ridb\_core.d.ts:596
#### Parameters
@@ -223,7 +223,7 @@ Defined in: ridb\_core.d.ts:368
> **getSchema**(`name`): [`Schema`](Schema.md)\<`any`\>
-Defined in: ridb\_core.d.ts:369
+Defined in: ridb\_core.d.ts:597
#### Parameters
@@ -241,7 +241,7 @@ Defined in: ridb\_core.d.ts:369
> **start**(): `Promise`\<`void`\>
-Defined in: ridb\_core.d.ts:362
+Defined in: ridb\_core.d.ts:590
#### Returns
@@ -257,7 +257,7 @@ Defined in: ridb\_core.d.ts:362
> **write**(`op`): `Promise`\<[`Doc`](../type-aliases/Doc.md)\<`Schemas`\[keyof `Schemas`\]\>\>
-Defined in: ridb\_core.d.ts:367
+Defined in: ridb\_core.d.ts:595
#### Parameters
@@ -279,7 +279,7 @@ Defined in: ridb\_core.d.ts:367
> `static` **create**\<`SchemasCreate`\>(`dbName`, `schemas`, `options?`): `Promise`\<`BaseStorage`\<`SchemasCreate`\>\>
-Defined in: ridb\_core.d.ts:344
+Defined in: ridb\_core.d.ts:572
#### Type Parameters
diff --git a/docs/@trust0/ridb-core/classes/Collection.md b/docs/@trust0/ridb-core/classes/Collection.md
index 80a5ca2b..ed3d8fbb 100644
--- a/docs/@trust0/ridb-core/classes/Collection.md
+++ b/docs/@trust0/ridb-core/classes/Collection.md
@@ -6,7 +6,7 @@
# Class: Collection\
-Defined in: ridb\_core.d.ts:293
+Defined in: ridb\_core.d.ts:342
Collection is a class that represents a collection of documents in a database.
@@ -34,7 +34,7 @@ A schema type defining the structure of the documents in the collection.
> **count**(`query`, `options?`): `Promise`\<`number`\>
-Defined in: ridb\_core.d.ts:305
+Defined in: ridb\_core.d.ts:354
count all documents in the collection.
@@ -60,7 +60,7 @@ A promise that resolves to an array of documents.
> **create**(`document`): `Promise`\<[`Doc`](../type-aliases/Doc.md)\<`T`\>\>
-Defined in: ridb\_core.d.ts:326
+Defined in: ridb\_core.d.ts:375
Creates a new document in the collection.
@@ -84,7 +84,7 @@ A promise that resolves to the created document.
> **delete**(`id`): `Promise`\<`void`\>
-Defined in: ridb\_core.d.ts:333
+Defined in: ridb\_core.d.ts:382
Deletes a document in the collection by its ID.
@@ -108,7 +108,7 @@ A promise that resolves when the deletion is complete.
> **find**(`query`, `options?`): `Promise`\<[`Doc`](../type-aliases/Doc.md)\<`T`\>[]\>
-Defined in: ridb\_core.d.ts:299
+Defined in: ridb\_core.d.ts:348
Finds all documents in the collection.
@@ -134,7 +134,7 @@ A promise that resolves to an array of documents.
> **findById**(`id`): `Promise`\<[`Doc`](../type-aliases/Doc.md)\<`T`\>\>
-Defined in: ridb\_core.d.ts:312
+Defined in: ridb\_core.d.ts:361
Finds a single document in the collection by its ID.
@@ -158,7 +158,7 @@ A promise that resolves to the found document.
> **update**(`document`): `Promise`\<`void`\>
-Defined in: ridb\_core.d.ts:319
+Defined in: ridb\_core.d.ts:368
Updates a document in the collection by its ID.
diff --git a/docs/@trust0/ridb-core/classes/CoreStorage.md b/docs/@trust0/ridb-core/classes/CoreStorage.md
index 20dbb282..79630984 100644
--- a/docs/@trust0/ridb-core/classes/CoreStorage.md
+++ b/docs/@trust0/ridb-core/classes/CoreStorage.md
@@ -6,7 +6,7 @@
# Class: CoreStorage
-Defined in: ridb\_core.d.ts:76
+Defined in: ridb\_core.d.ts:388
## Constructors
@@ -24,7 +24,7 @@ Defined in: ridb\_core.d.ts:76
> **getIndexes**(`schema`, `op`): `string`[]
-Defined in: ridb\_core.d.ts:84
+Defined in: ridb\_core.d.ts:396
#### Parameters
@@ -46,7 +46,7 @@ Defined in: ridb\_core.d.ts:84
> **getPrimaryKeyTyped**(`value`): `string` \| `number`
-Defined in: ridb\_core.d.ts:83
+Defined in: ridb\_core.d.ts:395
#### Parameters
@@ -64,7 +64,7 @@ Defined in: ridb\_core.d.ts:83
> **matchesQuery**(`document`, `query`): `boolean`
-Defined in: ridb\_core.d.ts:82
+Defined in: ridb\_core.d.ts:394
#### Parameters
diff --git a/docs/@trust0/ridb-core/classes/Database.md b/docs/@trust0/ridb-core/classes/Database.md
index 34b4bc57..e64189f4 100644
--- a/docs/@trust0/ridb-core/classes/Database.md
+++ b/docs/@trust0/ridb-core/classes/Database.md
@@ -6,7 +6,7 @@
# Class: Database\
-Defined in: ridb\_core.d.ts:118
+Defined in: ridb\_core.d.ts:457
Represents a database containing collections of documents.
RIDB extends from this class and is used to expose collections.
@@ -58,7 +58,7 @@ A record of schema types.
> `readonly` **collections**: \{ \[name in string \| number \| symbol\]: Collection\\> \}
-Defined in: ridb\_core.d.ts:148
+Defined in: ridb\_core.d.ts:487
The collections in the database.
@@ -70,7 +70,7 @@ This is a read-only property where the key is the name of the collection and the
> `readonly` **started**: `boolean`
-Defined in: ridb\_core.d.ts:152
+Defined in: ridb\_core.d.ts:491
## Methods
@@ -78,7 +78,7 @@ Defined in: ridb\_core.d.ts:152
> **authenticate**(`password`): `Promise`\<`boolean`\>
-Defined in: ridb\_core.d.ts:141
+Defined in: ridb\_core.d.ts:480
#### Parameters
@@ -96,7 +96,7 @@ Defined in: ridb\_core.d.ts:141
> **close**(): `Promise`\<`void`\>
-Defined in: ridb\_core.d.ts:166
+Defined in: ridb\_core.d.ts:505
Closes the database.
@@ -112,7 +112,7 @@ A promise that resolves when the database is closed.
> **start**(): `Promise`\<`void`\>
-Defined in: ridb\_core.d.ts:159
+Defined in: ridb\_core.d.ts:498
Starts the database.
@@ -128,7 +128,7 @@ A promise that resolves when the database is started.
> `static` **create**\<`TS`\>(`db_name`, `schemas`, `migrations`, `plugins`, `options`, `password?`, `storage?`): `Promise`\<`Database`\<`TS`\>\>
-Defined in: ridb\_core.d.ts:131
+Defined in: ridb\_core.d.ts:470
Creates a new `Database` instance with the provided schemas and storage module.
diff --git a/docs/@trust0/ridb-core/classes/InMemory.md b/docs/@trust0/ridb-core/classes/InMemory.md
index b964b607..52c377a0 100644
--- a/docs/@trust0/ridb-core/classes/InMemory.md
+++ b/docs/@trust0/ridb-core/classes/InMemory.md
@@ -6,7 +6,7 @@
# Class: InMemory\
-Defined in: ridb\_core.d.ts:620
+Defined in: ridb\_core.d.ts:168
Represents an in-memory storage system extending the base storage functionality.
@@ -28,7 +28,7 @@ The schema type.
> **new InMemory**\<`T`\>(`dbName`, `schemas`, `options?`): `InMemory`\<`T`\>
-Defined in: ridb\_core.d.ts:353
+Defined in: ridb\_core.d.ts:581
#### Parameters
@@ -58,7 +58,7 @@ Defined in: ridb\_core.d.ts:353
> `readonly` **core**: [`CoreStorage`](CoreStorage.md)
-Defined in: ridb\_core.d.ts:361
+Defined in: ridb\_core.d.ts:589
#### Inherited from
@@ -70,7 +70,7 @@ Defined in: ridb\_core.d.ts:361
> `readonly` **dbName**: `string`
-Defined in: ridb\_core.d.ts:358
+Defined in: ridb\_core.d.ts:586
#### Inherited from
@@ -82,7 +82,7 @@ Defined in: ridb\_core.d.ts:358
> `readonly` **options**: [`BaseStorageOptions`](../type-aliases/BaseStorageOptions.md)
-Defined in: ridb\_core.d.ts:360
+Defined in: ridb\_core.d.ts:588
#### Inherited from
@@ -94,7 +94,7 @@ Defined in: ridb\_core.d.ts:360
> `readonly` **schemas**: `Record`\\>
-Defined in: ridb\_core.d.ts:359
+Defined in: ridb\_core.d.ts:587
#### Inherited from
@@ -106,7 +106,7 @@ Defined in: ridb\_core.d.ts:359
> **addIndexSchemas**(): `null`
-Defined in: ridb\_core.d.ts:371
+Defined in: ridb\_core.d.ts:599
#### Returns
@@ -122,7 +122,7 @@ Defined in: ridb\_core.d.ts:371
> **close**(): `Promise`\<`void`\>
-Defined in: ridb\_core.d.ts:363
+Defined in: ridb\_core.d.ts:591
#### Returns
@@ -138,7 +138,7 @@ Defined in: ridb\_core.d.ts:363
> **count**(`colectionName`, `query`, `options?`): `Promise`\<`number`\>
-Defined in: ridb\_core.d.ts:364
+Defined in: ridb\_core.d.ts:592
#### Parameters
@@ -168,7 +168,7 @@ keyof `T`
> **find**(`collectionName`, `query`, `options?`): `Promise`\<[`Doc`](../type-aliases/Doc.md)\<`T`\[keyof `T`\]\>[]\>
-Defined in: ridb\_core.d.ts:366
+Defined in: ridb\_core.d.ts:594
#### Parameters
@@ -198,7 +198,7 @@ keyof `T`
> **findDocumentById**(`collectionName`, `id`): `Promise`\<`null` \| [`Doc`](../type-aliases/Doc.md)\<`T`\[keyof `T`\]\>\>
-Defined in: ridb\_core.d.ts:365
+Defined in: ridb\_core.d.ts:593
#### Parameters
@@ -224,7 +224,7 @@ keyof `T`
> **free**(): `void`
-Defined in: ridb\_core.d.ts:624
+Defined in: ridb\_core.d.ts:172
Frees the resources used by the in-memory storage.
@@ -238,7 +238,7 @@ Frees the resources used by the in-memory storage.
> **getOption**(`name`): `undefined` \| `string` \| `number` \| `boolean`
-Defined in: ridb\_core.d.ts:368
+Defined in: ridb\_core.d.ts:596
#### Parameters
@@ -260,7 +260,7 @@ Defined in: ridb\_core.d.ts:368
> **getSchema**(`name`): [`Schema`](Schema.md)\<`any`\>
-Defined in: ridb\_core.d.ts:369
+Defined in: ridb\_core.d.ts:597
#### Parameters
@@ -282,7 +282,7 @@ Defined in: ridb\_core.d.ts:369
> **start**(): `Promise`\<`void`\>
-Defined in: ridb\_core.d.ts:362
+Defined in: ridb\_core.d.ts:590
#### Returns
@@ -298,7 +298,7 @@ Defined in: ridb\_core.d.ts:362
> **write**(`op`): `Promise`\<[`Doc`](../type-aliases/Doc.md)\<`T`\[keyof `T`\]\>\>
-Defined in: ridb\_core.d.ts:367
+Defined in: ridb\_core.d.ts:595
#### Parameters
@@ -320,7 +320,7 @@ Defined in: ridb\_core.d.ts:367
> `static` **create**\<`SchemasCreate`\>(`dbName`, `schemas`): `Promise`\<`InMemory`\<`SchemasCreate`\>\>
-Defined in: ridb\_core.d.ts:626
+Defined in: ridb\_core.d.ts:174
#### Type Parameters
diff --git a/docs/@trust0/ridb-core/classes/IndexDB.md b/docs/@trust0/ridb-core/classes/IndexDB.md
index c3c5b5de..5885068c 100644
--- a/docs/@trust0/ridb-core/classes/IndexDB.md
+++ b/docs/@trust0/ridb-core/classes/IndexDB.md
@@ -6,7 +6,7 @@
# Class: IndexDB\
-Defined in: ridb\_core.d.ts:678
+Defined in: ridb\_core.d.ts:145
Represents an IndexDB storage system extending the base storage functionality.
@@ -28,7 +28,7 @@ The schema type.
> **new IndexDB**\<`T`\>(`dbName`, `schemas`, `options?`): `IndexDB`\<`T`\>
-Defined in: ridb\_core.d.ts:353
+Defined in: ridb\_core.d.ts:581
#### Parameters
@@ -58,7 +58,7 @@ Defined in: ridb\_core.d.ts:353
> `readonly` **core**: [`CoreStorage`](CoreStorage.md)
-Defined in: ridb\_core.d.ts:361
+Defined in: ridb\_core.d.ts:589
#### Inherited from
@@ -70,7 +70,7 @@ Defined in: ridb\_core.d.ts:361
> `readonly` **dbName**: `string`
-Defined in: ridb\_core.d.ts:358
+Defined in: ridb\_core.d.ts:586
#### Inherited from
@@ -82,7 +82,7 @@ Defined in: ridb\_core.d.ts:358
> `readonly` **options**: [`BaseStorageOptions`](../type-aliases/BaseStorageOptions.md)
-Defined in: ridb\_core.d.ts:360
+Defined in: ridb\_core.d.ts:588
#### Inherited from
@@ -94,7 +94,7 @@ Defined in: ridb\_core.d.ts:360
> `readonly` **schemas**: `Record`\\>
-Defined in: ridb\_core.d.ts:359
+Defined in: ridb\_core.d.ts:587
#### Inherited from
@@ -106,7 +106,7 @@ Defined in: ridb\_core.d.ts:359
> **addIndexSchemas**(): `null`
-Defined in: ridb\_core.d.ts:371
+Defined in: ridb\_core.d.ts:599
#### Returns
@@ -122,7 +122,7 @@ Defined in: ridb\_core.d.ts:371
> **close**(): `Promise`\<`void`\>
-Defined in: ridb\_core.d.ts:363
+Defined in: ridb\_core.d.ts:591
#### Returns
@@ -138,7 +138,7 @@ Defined in: ridb\_core.d.ts:363
> **count**(`colectionName`, `query`, `options?`): `Promise`\<`number`\>
-Defined in: ridb\_core.d.ts:364
+Defined in: ridb\_core.d.ts:592
#### Parameters
@@ -168,7 +168,7 @@ keyof `T`
> **find**(`collectionName`, `query`, `options?`): `Promise`\<[`Doc`](../type-aliases/Doc.md)\<`T`\[keyof `T`\]\>[]\>
-Defined in: ridb\_core.d.ts:366
+Defined in: ridb\_core.d.ts:594
#### Parameters
@@ -198,7 +198,7 @@ keyof `T`
> **findDocumentById**(`collectionName`, `id`): `Promise`\<`null` \| [`Doc`](../type-aliases/Doc.md)\<`T`\[keyof `T`\]\>\>
-Defined in: ridb\_core.d.ts:365
+Defined in: ridb\_core.d.ts:593
#### Parameters
@@ -224,7 +224,7 @@ keyof `T`
> **free**(): `void`
-Defined in: ridb\_core.d.ts:682
+Defined in: ridb\_core.d.ts:149
Frees the resources used by the in-memory storage.
@@ -238,7 +238,7 @@ Frees the resources used by the in-memory storage.
> **getOption**(`name`): `undefined` \| `string` \| `number` \| `boolean`
-Defined in: ridb\_core.d.ts:368
+Defined in: ridb\_core.d.ts:596
#### Parameters
@@ -260,7 +260,7 @@ Defined in: ridb\_core.d.ts:368
> **getSchema**(`name`): [`Schema`](Schema.md)\<`any`\>
-Defined in: ridb\_core.d.ts:369
+Defined in: ridb\_core.d.ts:597
#### Parameters
@@ -282,7 +282,7 @@ Defined in: ridb\_core.d.ts:369
> **start**(): `Promise`\<`void`\>
-Defined in: ridb\_core.d.ts:362
+Defined in: ridb\_core.d.ts:590
#### Returns
@@ -298,7 +298,7 @@ Defined in: ridb\_core.d.ts:362
> **write**(`op`): `Promise`\<[`Doc`](../type-aliases/Doc.md)\<`T`\[keyof `T`\]\>\>
-Defined in: ridb\_core.d.ts:367
+Defined in: ridb\_core.d.ts:595
#### Parameters
@@ -320,7 +320,7 @@ Defined in: ridb\_core.d.ts:367
> `static` **create**\<`SchemasCreate`\>(`dbName`, `schemas`): `Promise`\<`IndexDB`\<`SchemasCreate`\>\>
-Defined in: ridb\_core.d.ts:684
+Defined in: ridb\_core.d.ts:151
#### Type Parameters
diff --git a/docs/@trust0/ridb-core/classes/Property.md b/docs/@trust0/ridb-core/classes/Property.md
index ba1d7e79..7df48814 100644
--- a/docs/@trust0/ridb-core/classes/Property.md
+++ b/docs/@trust0/ridb-core/classes/Property.md
@@ -6,7 +6,7 @@
# Class: Property
-Defined in: ridb\_core.d.ts:699
+Defined in: ridb\_core.d.ts:79
Represents a property within a schema, including various constraints and nested properties.
@@ -26,7 +26,7 @@ Represents a property within a schema, including various constraints and nested
> `readonly` `optional` **default**: `any`
-Defined in: ridb\_core.d.ts:748
+Defined in: ridb\_core.d.ts:128
An optional default value for the property.
@@ -36,7 +36,7 @@ An optional default value for the property.
> `readonly` `optional` **items**: `Property`
-Defined in: ridb\_core.d.ts:718
+Defined in: ridb\_core.d.ts:98
An optional array of nested properties for array-type properties.
@@ -46,7 +46,7 @@ An optional array of nested properties for array-type properties.
> `readonly` `optional` **maxItems**: `number`
-Defined in: ridb\_core.d.ts:723
+Defined in: ridb\_core.d.ts:103
The maximum number of items for array-type properties, if applicable.
@@ -56,7 +56,7 @@ The maximum number of items for array-type properties, if applicable.
> `readonly` `optional` **maxLength**: `number`
-Defined in: ridb\_core.d.ts:733
+Defined in: ridb\_core.d.ts:113
The maximum length for string-type properties, if applicable.
@@ -66,7 +66,7 @@ The maximum length for string-type properties, if applicable.
> `readonly` `optional` **minItems**: `number`
-Defined in: ridb\_core.d.ts:728
+Defined in: ridb\_core.d.ts:108
The minimum number of items for array-type properties, if applicable.
@@ -76,7 +76,7 @@ The minimum number of items for array-type properties, if applicable.
> `readonly` `optional` **minLength**: `number`
-Defined in: ridb\_core.d.ts:738
+Defined in: ridb\_core.d.ts:118
The minimum length for string-type properties, if applicable.
@@ -86,7 +86,7 @@ The minimum length for string-type properties, if applicable.
> `readonly` `optional` **primaryKey**: `string`
-Defined in: ridb\_core.d.ts:713
+Defined in: ridb\_core.d.ts:93
The primary key of the property, if applicable.
@@ -96,7 +96,7 @@ The primary key of the property, if applicable.
> `readonly` `optional` **properties**: `object`
-Defined in: ridb\_core.d.ts:753
+Defined in: ridb\_core.d.ts:133
An optional map of nested properties for object-type properties.
@@ -110,7 +110,7 @@ An optional map of nested properties for object-type properties.
> `readonly` `optional` **required**: `boolean`
-Defined in: ridb\_core.d.ts:743
+Defined in: ridb\_core.d.ts:123
An optional array of required fields for object-type properties.
@@ -120,7 +120,7 @@ An optional array of required fields for object-type properties.
> `readonly` **type**: `SchemaFieldType`
-Defined in: ridb\_core.d.ts:703
+Defined in: ridb\_core.d.ts:83
The type of the property.
@@ -130,6 +130,6 @@ The type of the property.
> `readonly` `optional` **version**: `number`
-Defined in: ridb\_core.d.ts:708
+Defined in: ridb\_core.d.ts:88
The version of the property, if applicable.
diff --git a/docs/@trust0/ridb-core/classes/Query.md b/docs/@trust0/ridb-core/classes/Query.md
index e7270214..2339b6c4 100644
--- a/docs/@trust0/ridb-core/classes/Query.md
+++ b/docs/@trust0/ridb-core/classes/Query.md
@@ -6,7 +6,7 @@
# Class: Query\
-Defined in: ridb\_core.d.ts:405
+Defined in: ridb\_core.d.ts:233
## Type Parameters
@@ -20,7 +20,7 @@ Defined in: ridb\_core.d.ts:405
> **new Query**\<`T`\>(`query`, `schema`): `Query`\<`T`\>
-Defined in: ridb\_core.d.ts:406
+Defined in: ridb\_core.d.ts:234
#### Parameters
@@ -42,4 +42,4 @@ Defined in: ridb\_core.d.ts:406
> `readonly` **query**: [`QueryType`](../type-aliases/QueryType.md)\<`T`\>
-Defined in: ridb\_core.d.ts:407
+Defined in: ridb\_core.d.ts:235
diff --git a/docs/@trust0/ridb-core/classes/Schema.md b/docs/@trust0/ridb-core/classes/Schema.md
index 506092f5..bb00bd3c 100644
--- a/docs/@trust0/ridb-core/classes/Schema.md
+++ b/docs/@trust0/ridb-core/classes/Schema.md
@@ -6,7 +6,7 @@
# Class: Schema\
-Defined in: ridb\_core.d.ts:457
+Defined in: ridb\_core.d.ts:649
Represents a schema, including its definition and related methods.
You may be trying to build a storage, in any other can u won't need access tho this class.
@@ -45,7 +45,7 @@ The schema type.
> `readonly` `optional` **encrypted**: `Extract`\[]
-Defined in: ridb\_core.d.ts:498
+Defined in: ridb\_core.d.ts:690
An optional array of encrypted fields.
@@ -55,7 +55,7 @@ An optional array of encrypted fields.
> `readonly` `optional` **indexes**: `Extract`\[]
-Defined in: ridb\_core.d.ts:493
+Defined in: ridb\_core.d.ts:685
An optional array of indexes.
@@ -65,7 +65,7 @@ An optional array of indexes.
> `readonly` **primaryKey**: `string`
-Defined in: ridb\_core.d.ts:480
+Defined in: ridb\_core.d.ts:672
The primary key of the schema.
@@ -75,7 +75,7 @@ The primary key of the schema.
> `readonly` **properties**: \{ \[K in string \| number \| symbol as T\["properties"\]\[K\]\["required"\] extends false \| (T\["properties"\]\[K\]\["default"\] extends undefined ? true : false) ? K : never\]?: T\["properties"\]\[K\] \} & \{ \[K in string \| number \| symbol as T\["properties"\]\[K\]\["required"\] extends false ? never : K\]: T\["properties"\]\[K\] \}
-Defined in: ridb\_core.d.ts:503
+Defined in: ridb\_core.d.ts:695
The properties defined in the schema.
@@ -85,7 +85,7 @@ The properties defined in the schema.
> **schema**: `Schema`\<`T`\>
-Defined in: ridb\_core.d.ts:461
+Defined in: ridb\_core.d.ts:653
The schema definition.
@@ -95,7 +95,7 @@ The schema definition.
> `readonly` **type**: `SchemaFieldType`
-Defined in: ridb\_core.d.ts:485
+Defined in: ridb\_core.d.ts:677
The type of the schema.
@@ -105,7 +105,7 @@ The type of the schema.
> `readonly` **version**: `number`
-Defined in: ridb\_core.d.ts:475
+Defined in: ridb\_core.d.ts:667
The version of the schema.
@@ -115,7 +115,7 @@ The version of the schema.
> **toJSON**(): [`SchemaType`](../type-aliases/SchemaType.md)
-Defined in: ridb\_core.d.ts:513
+Defined in: ridb\_core.d.ts:705
Converts the schema to a JSON representation.
@@ -131,7 +131,7 @@ The JSON representation of the schema.
> **validate**(`document`): `boolean`
-Defined in: ridb\_core.d.ts:515
+Defined in: ridb\_core.d.ts:707
#### Parameters
@@ -149,7 +149,7 @@ Defined in: ridb\_core.d.ts:515
> `static` **create**\<`TS`\>(`definition`): `Schema`\<`TS`\>
-Defined in: ridb\_core.d.ts:470
+Defined in: ridb\_core.d.ts:662
Creates a new `Schema` instance from the provided definition.
diff --git a/docs/@trust0/ridb-core/classes/StorageInternal.md b/docs/@trust0/ridb-core/classes/StorageInternal.md
index 95e40812..5584e9bd 100644
--- a/docs/@trust0/ridb-core/classes/StorageInternal.md
+++ b/docs/@trust0/ridb-core/classes/StorageInternal.md
@@ -6,7 +6,7 @@
# Class: `abstract` StorageInternal\
-Defined in: ridb\_core.d.ts:646
+Defined in: ridb\_core.d.ts:540
## Extended by
@@ -24,7 +24,7 @@ Defined in: ridb\_core.d.ts:646
> **new StorageInternal**\<`Schemas`\>(`name`, `schemas`): `StorageInternal`\<`Schemas`\>
-Defined in: ridb\_core.d.ts:647
+Defined in: ridb\_core.d.ts:541
#### Parameters
@@ -46,7 +46,7 @@ Defined in: ridb\_core.d.ts:647
> `abstract` **close**(): `Promise`\<`void`\>
-Defined in: ridb\_core.d.ts:652
+Defined in: ridb\_core.d.ts:546
#### Returns
@@ -58,7 +58,7 @@ Defined in: ridb\_core.d.ts:652
> `abstract` **count**(`colectionName`, `query`, `options?`): `Promise`\<`number`\>
-Defined in: ridb\_core.d.ts:653
+Defined in: ridb\_core.d.ts:547
#### Parameters
@@ -84,7 +84,7 @@ keyof `Schemas`
> `abstract` **find**(`collectionName`, `query`, `options?`): `Promise`\<[`Doc`](../type-aliases/Doc.md)\<`Schemas`\[keyof `Schemas`\]\>[]\>
-Defined in: ridb\_core.d.ts:662
+Defined in: ridb\_core.d.ts:556
#### Parameters
@@ -110,7 +110,7 @@ keyof `Schemas`
> `abstract` **findDocumentById**(`collectionName`, `id`): `Promise`\<`null` \| [`Doc`](../type-aliases/Doc.md)\<`Schemas`\[keyof `Schemas`\]\>\>
-Defined in: ridb\_core.d.ts:658
+Defined in: ridb\_core.d.ts:552
#### Parameters
@@ -132,7 +132,7 @@ keyof `Schemas`
> `abstract` **start**(): `Promise`\<`void`\>
-Defined in: ridb\_core.d.ts:651
+Defined in: ridb\_core.d.ts:545
#### Returns
@@ -144,7 +144,7 @@ Defined in: ridb\_core.d.ts:651
> `abstract` **write**(`op`): `Promise`\<[`Doc`](../type-aliases/Doc.md)\<`Schemas`\[keyof `Schemas`\]\>\>
-Defined in: ridb\_core.d.ts:667
+Defined in: ridb\_core.d.ts:561
#### Parameters
diff --git a/docs/@trust0/ridb-core/interfaces/InitOutput.md b/docs/@trust0/ridb-core/interfaces/InitOutput.md
index 6f3263dd..e5e726cd 100644
--- a/docs/@trust0/ridb-core/interfaces/InitOutput.md
+++ b/docs/@trust0/ridb-core/interfaces/InitOutput.md
@@ -14,7 +14,7 @@ Defined in: ridb\_core.d.ts:868
> `readonly` **\_\_wbg\_baseplugin\_free**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:956
+Defined in: ridb\_core.d.ts:912
#### Parameters
@@ -32,7 +32,7 @@ Defined in: ridb\_core.d.ts:956
> `readonly` **\_\_wbg\_basestorage\_free**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:899
+Defined in: ridb\_core.d.ts:989
#### Parameters
@@ -50,7 +50,7 @@ Defined in: ridb\_core.d.ts:899
> `readonly` **\_\_wbg\_collection\_free**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:889
+Defined in: ridb\_core.d.ts:957
#### Parameters
@@ -68,7 +68,7 @@ Defined in: ridb\_core.d.ts:889
> `readonly` **\_\_wbg\_corestorage\_free**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:888
+Defined in: ridb\_core.d.ts:981
#### Parameters
@@ -86,7 +86,7 @@ Defined in: ridb\_core.d.ts:888
> `readonly` **\_\_wbg\_database\_free**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:874
+Defined in: ridb\_core.d.ts:982
#### Parameters
@@ -104,7 +104,7 @@ Defined in: ridb\_core.d.ts:874
> `readonly` **\_\_wbg\_indexdb\_free**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:983
+Defined in: ridb\_core.d.ts:894
#### Parameters
@@ -122,7 +122,7 @@ Defined in: ridb\_core.d.ts:983
> `readonly` **\_\_wbg\_inmemory\_free**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:963
+Defined in: ridb\_core.d.ts:904
#### Parameters
@@ -140,7 +140,7 @@ Defined in: ridb\_core.d.ts:963
> `readonly` **\_\_wbg\_operation\_free**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:881
+Defined in: ridb\_core.d.ts:974
#### Parameters
@@ -158,7 +158,7 @@ Defined in: ridb\_core.d.ts:881
> `readonly` **\_\_wbg\_property\_free**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:996
+Defined in: ridb\_core.d.ts:870
#### Parameters
@@ -176,7 +176,7 @@ Defined in: ridb\_core.d.ts:996
> `readonly` **\_\_wbg\_query\_free**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:907
+Defined in: ridb\_core.d.ts:919
#### Parameters
@@ -194,7 +194,7 @@ Defined in: ridb\_core.d.ts:907
> `readonly` **\_\_wbg\_queryoptions\_free**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:993
+Defined in: ridb\_core.d.ts:971
#### Parameters
@@ -212,7 +212,7 @@ Defined in: ridb\_core.d.ts:993
> `readonly` **\_\_wbg\_ridberror\_free**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:971
+Defined in: ridb\_core.d.ts:882
#### Parameters
@@ -230,7 +230,7 @@ Defined in: ridb\_core.d.ts:971
> `readonly` **\_\_wbg\_schema\_free**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:943
+Defined in: ridb\_core.d.ts:995
#### Parameters
@@ -266,7 +266,7 @@ Defined in: ridb\_core.d.ts:1008
> `readonly` **\_\_wbgt\_test\_get\_properties\_array\_values\_10**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:918
+Defined in: ridb\_core.d.ts:930
#### Parameters
@@ -284,7 +284,7 @@ Defined in: ridb\_core.d.ts:918
> `readonly` **\_\_wbgt\_test\_get\_properties\_deeply\_nested\_12**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:920
+Defined in: ridb\_core.d.ts:932
#### Parameters
@@ -302,7 +302,7 @@ Defined in: ridb\_core.d.ts:920
> `readonly` **\_\_wbgt\_test\_get\_properties\_empty\_query\_11**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:919
+Defined in: ridb\_core.d.ts:931
#### Parameters
@@ -320,7 +320,7 @@ Defined in: ridb\_core.d.ts:919
> `readonly` **\_\_wbgt\_test\_get\_properties\_nested\_operators\_9**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:917
+Defined in: ridb\_core.d.ts:929
#### Parameters
@@ -338,7 +338,7 @@ Defined in: ridb\_core.d.ts:917
> `readonly` **\_\_wbgt\_test\_get\_properties\_simple\_fields\_6**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:914
+Defined in: ridb\_core.d.ts:926
#### Parameters
@@ -356,7 +356,7 @@ Defined in: ridb\_core.d.ts:914
> `readonly` **\_\_wbgt\_test\_get\_properties\_with\_array\_at\_top\_level\_14**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:922
+Defined in: ridb\_core.d.ts:934
#### Parameters
@@ -374,7 +374,7 @@ Defined in: ridb\_core.d.ts:922
> `readonly` **\_\_wbgt\_test\_get\_properties\_with\_logical\_operators\_8**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:916
+Defined in: ridb\_core.d.ts:928
#### Parameters
@@ -392,7 +392,7 @@ Defined in: ridb\_core.d.ts:916
> `readonly` **\_\_wbgt\_test\_get\_properties\_with\_multiple\_same\_props\_13**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:921
+Defined in: ridb\_core.d.ts:933
#### Parameters
@@ -410,7 +410,7 @@ Defined in: ridb\_core.d.ts:921
> `readonly` **\_\_wbgt\_test\_get\_properties\_with\_operators\_7**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:915
+Defined in: ridb\_core.d.ts:927
#### Parameters
@@ -428,7 +428,7 @@ Defined in: ridb\_core.d.ts:915
> `readonly` **\_\_wbgt\_test\_invalid\_property\_2**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:1007
+Defined in: ridb\_core.d.ts:881
#### Parameters
@@ -446,7 +446,7 @@ Defined in: ridb\_core.d.ts:1007
> `readonly` **\_\_wbgt\_test\_invalid\_schema\_5**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:955
+Defined in: ridb\_core.d.ts:1007
#### Parameters
@@ -464,7 +464,7 @@ Defined in: ridb\_core.d.ts:955
> `readonly` **\_\_wbgt\_test\_property\_creation\_0**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:1005
+Defined in: ridb\_core.d.ts:879
#### Parameters
@@ -482,7 +482,7 @@ Defined in: ridb\_core.d.ts:1005
> `readonly` **\_\_wbgt\_test\_property\_validation\_1**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:1006
+Defined in: ridb\_core.d.ts:880
#### Parameters
@@ -500,7 +500,7 @@ Defined in: ridb\_core.d.ts:1006
> `readonly` **\_\_wbgt\_test\_query\_get\_query\_normalization\_complex\_mixed\_22**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:930
+Defined in: ridb\_core.d.ts:942
#### Parameters
@@ -518,7 +518,7 @@ Defined in: ridb\_core.d.ts:930
> `readonly` **\_\_wbgt\_test\_query\_get\_query\_normalization\_nested\_logical\_operators\_20**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:928
+Defined in: ridb\_core.d.ts:940
#### Parameters
@@ -536,7 +536,7 @@ Defined in: ridb\_core.d.ts:928
> `readonly` **\_\_wbgt\_test\_query\_get\_query\_normalization\_only\_logical\_operator\_21**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:929
+Defined in: ridb\_core.d.ts:941
#### Parameters
@@ -554,7 +554,7 @@ Defined in: ridb\_core.d.ts:929
> `readonly` **\_\_wbgt\_test\_query\_get\_query\_normalization\_simple\_attributes\_18**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:926
+Defined in: ridb\_core.d.ts:938
#### Parameters
@@ -572,7 +572,7 @@ Defined in: ridb\_core.d.ts:926
> `readonly` **\_\_wbgt\_test\_query\_get\_query\_normalization\_with\_logical\_operator\_19**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:927
+Defined in: ridb\_core.d.ts:939
#### Parameters
@@ -590,7 +590,7 @@ Defined in: ridb\_core.d.ts:927
> `readonly` **\_\_wbgt\_test\_query\_parse\_age\_query\_24**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:932
+Defined in: ridb\_core.d.ts:944
#### Parameters
@@ -608,7 +608,7 @@ Defined in: ridb\_core.d.ts:932
> `readonly` **\_\_wbgt\_test\_query\_parse\_empty\_logical\_operators\_28**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:936
+Defined in: ridb\_core.d.ts:948
#### Parameters
@@ -626,7 +626,7 @@ Defined in: ridb\_core.d.ts:936
> `readonly` **\_\_wbgt\_test\_query\_parse\_empty\_query\_23**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:931
+Defined in: ridb\_core.d.ts:943
#### Parameters
@@ -644,7 +644,7 @@ Defined in: ridb\_core.d.ts:931
> `readonly` **\_\_wbgt\_test\_query\_parse\_eq\_operator\_31**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:939
+Defined in: ridb\_core.d.ts:951
#### Parameters
@@ -662,7 +662,7 @@ Defined in: ridb\_core.d.ts:939
> `readonly` **\_\_wbgt\_test\_query\_parse\_eq\_operator\_wrong\_type\_32**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:940
+Defined in: ridb\_core.d.ts:952
#### Parameters
@@ -680,7 +680,7 @@ Defined in: ridb\_core.d.ts:940
> `readonly` **\_\_wbgt\_test\_query\_parse\_in\_operator\_16**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:924
+Defined in: ridb\_core.d.ts:936
#### Parameters
@@ -698,7 +698,7 @@ Defined in: ridb\_core.d.ts:924
> `readonly` **\_\_wbgt\_test\_query\_parse\_in\_operator\_wrong\_type\_17**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:925
+Defined in: ridb\_core.d.ts:937
#### Parameters
@@ -716,7 +716,7 @@ Defined in: ridb\_core.d.ts:925
> `readonly` **\_\_wbgt\_test\_query\_parse\_invalid\_in\_operator\_27**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:935
+Defined in: ridb\_core.d.ts:947
#### Parameters
@@ -734,7 +734,7 @@ Defined in: ridb\_core.d.ts:935
> `readonly` **\_\_wbgt\_test\_query\_parse\_multiple\_operators\_26**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:934
+Defined in: ridb\_core.d.ts:946
#### Parameters
@@ -752,7 +752,7 @@ Defined in: ridb\_core.d.ts:934
> `readonly` **\_\_wbgt\_test\_query\_parse\_ne\_operator\_33**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:941
+Defined in: ridb\_core.d.ts:953
#### Parameters
@@ -770,7 +770,7 @@ Defined in: ridb\_core.d.ts:941
> `readonly` **\_\_wbgt\_test\_query\_parse\_ne\_operator\_wrong\_type\_34**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:942
+Defined in: ridb\_core.d.ts:954
#### Parameters
@@ -788,7 +788,7 @@ Defined in: ridb\_core.d.ts:942
> `readonly` **\_\_wbgt\_test\_query\_parse\_nin\_operator\_29**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:937
+Defined in: ridb\_core.d.ts:949
#### Parameters
@@ -806,7 +806,7 @@ Defined in: ridb\_core.d.ts:937
> `readonly` **\_\_wbgt\_test\_query\_parse\_nin\_operator\_wrong\_type\_30**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:938
+Defined in: ridb\_core.d.ts:950
#### Parameters
@@ -824,7 +824,7 @@ Defined in: ridb\_core.d.ts:938
> `readonly` **\_\_wbgt\_test\_query\_parse\_non\_object\_query\_25**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:933
+Defined in: ridb\_core.d.ts:945
#### Parameters
@@ -842,7 +842,7 @@ Defined in: ridb\_core.d.ts:933
> `readonly` **\_\_wbgt\_test\_query\_parse\_operator\_wrong\_type\_15**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:923
+Defined in: ridb\_core.d.ts:935
#### Parameters
@@ -860,7 +860,7 @@ Defined in: ridb\_core.d.ts:923
> `readonly` **\_\_wbgt\_test\_schema\_creation\_3**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:953
+Defined in: ridb\_core.d.ts:1005
#### Parameters
@@ -878,7 +878,7 @@ Defined in: ridb\_core.d.ts:953
> `readonly` **\_\_wbgt\_test\_schema\_validation\_4**: (`a`) => `void`
-Defined in: ridb\_core.d.ts:954
+Defined in: ridb\_core.d.ts:1006
#### Parameters
@@ -1154,11 +1154,11 @@ Defined in: ridb\_core.d.ts:1021
***
-### \_dyn\_core\_\_ops\_\_function\_\_FnMut\_\_A\_\_\_\_Output\_\_\_R\_as\_wasm\_bindgen\_\_closure\_\_WasmClosure\_\_\_describe\_\_invoke\_\_h4e550b82c2b30c7a()
+### \_dyn\_core\_\_ops\_\_function\_\_FnMut\_\_\_\_\_Output\_\_\_R\_as\_wasm\_bindgen\_\_closure\_\_WasmClosure\_\_\_describe\_\_invoke\_\_hec0cc069f718ed78()
-> `readonly` **\_dyn\_core\_\_ops\_\_function\_\_FnMut\_\_A\_\_\_\_Output\_\_\_R\_as\_wasm\_bindgen\_\_closure\_\_WasmClosure\_\_\_describe\_\_invoke\_\_h4e550b82c2b30c7a**: (`a`, `b`, `c`) => `void`
+> `readonly` **\_dyn\_core\_\_ops\_\_function\_\_FnMut\_\_\_\_\_Output\_\_\_R\_as\_wasm\_bindgen\_\_closure\_\_WasmClosure\_\_\_describe\_\_invoke\_\_hec0cc069f718ed78**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:1022
+Defined in: ridb\_core.d.ts:1023
#### Parameters
@@ -1170,21 +1170,17 @@ Defined in: ridb\_core.d.ts:1022
`number`
-##### c
-
-`number`
-
#### Returns
`void`
***
-### \_dyn\_core\_\_ops\_\_function\_\_FnMut\_\_A\_\_\_\_Output\_\_\_R\_as\_wasm\_bindgen\_\_closure\_\_WasmClosure\_\_\_describe\_\_invoke\_\_hef4d0d64e714d731()
+### \_dyn\_core\_\_ops\_\_function\_\_FnMut\_\_A\_\_\_\_Output\_\_\_R\_as\_wasm\_bindgen\_\_closure\_\_WasmClosure\_\_\_describe\_\_invoke\_\_h4e550b82c2b30c7a()
-> `readonly` **\_dyn\_core\_\_ops\_\_function\_\_FnMut\_\_A\_\_\_\_Output\_\_\_R\_as\_wasm\_bindgen\_\_closure\_\_WasmClosure\_\_\_describe\_\_invoke\_\_hef4d0d64e714d731**: (`a`, `b`, `c`) => `number`
+> `readonly` **\_dyn\_core\_\_ops\_\_function\_\_FnMut\_\_A\_\_\_\_Output\_\_\_R\_as\_wasm\_bindgen\_\_closure\_\_WasmClosure\_\_\_describe\_\_invoke\_\_h4e550b82c2b30c7a**: (`a`, `b`, `c`) => `void`
-Defined in: ridb\_core.d.ts:1023
+Defined in: ridb\_core.d.ts:1022
#### Parameters
@@ -1202,7 +1198,7 @@ Defined in: ridb\_core.d.ts:1023
#### Returns
-`number`
+`void`
***
@@ -1236,7 +1232,7 @@ Defined in: ridb\_core.d.ts:1024
> `readonly` **baseplugin\_get\_doc\_create\_hook**: (`a`) => `number`
-Defined in: ridb\_core.d.ts:959
+Defined in: ridb\_core.d.ts:915
#### Parameters
@@ -1254,7 +1250,7 @@ Defined in: ridb\_core.d.ts:959
> `readonly` **baseplugin\_get\_doc\_recover\_hook**: (`a`) => `number`
-Defined in: ridb\_core.d.ts:960
+Defined in: ridb\_core.d.ts:916
#### Parameters
@@ -1272,7 +1268,7 @@ Defined in: ridb\_core.d.ts:960
> `readonly` **baseplugin\_name**: (`a`) => `number`
-Defined in: ridb\_core.d.ts:958
+Defined in: ridb\_core.d.ts:914
#### Parameters
@@ -1290,7 +1286,7 @@ Defined in: ridb\_core.d.ts:958
> `readonly` **baseplugin\_new**: (`a`, `b`, `c`) => `void`
-Defined in: ridb\_core.d.ts:957
+Defined in: ridb\_core.d.ts:913
#### Parameters
@@ -1316,7 +1312,7 @@ Defined in: ridb\_core.d.ts:957
> `readonly` **baseplugin\_set\_doc\_create\_hook**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:961
+Defined in: ridb\_core.d.ts:917
#### Parameters
@@ -1338,7 +1334,7 @@ Defined in: ridb\_core.d.ts:961
> `readonly` **baseplugin\_set\_doc\_recover\_hook**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:962
+Defined in: ridb\_core.d.ts:918
#### Parameters
@@ -1360,7 +1356,7 @@ Defined in: ridb\_core.d.ts:962
> `readonly` **basestorage\_addIndexSchemas**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:901
+Defined in: ridb\_core.d.ts:991
#### Parameters
@@ -1382,7 +1378,7 @@ Defined in: ridb\_core.d.ts:901
> `readonly` **basestorage\_core**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:904
+Defined in: ridb\_core.d.ts:994
#### Parameters
@@ -1404,7 +1400,7 @@ Defined in: ridb\_core.d.ts:904
> `readonly` **basestorage\_getOption**: (`a`, `b`, `c`, `d`) => `void`
-Defined in: ridb\_core.d.ts:902
+Defined in: ridb\_core.d.ts:992
#### Parameters
@@ -1434,7 +1430,7 @@ Defined in: ridb\_core.d.ts:902
> `readonly` **basestorage\_getSchema**: (`a`, `b`, `c`, `d`) => `void`
-Defined in: ridb\_core.d.ts:903
+Defined in: ridb\_core.d.ts:993
#### Parameters
@@ -1464,7 +1460,7 @@ Defined in: ridb\_core.d.ts:903
> `readonly` **basestorage\_new**: (`a`, `b`, `c`, `d`, `e`) => `void`
-Defined in: ridb\_core.d.ts:900
+Defined in: ridb\_core.d.ts:990
#### Parameters
@@ -1498,7 +1494,7 @@ Defined in: ridb\_core.d.ts:900
> `readonly` **collection\_count**: (`a`, `b`, `c`) => `number`
-Defined in: ridb\_core.d.ts:894
+Defined in: ridb\_core.d.ts:962
#### Parameters
@@ -1524,7 +1520,7 @@ Defined in: ridb\_core.d.ts:894
> `readonly` **collection\_create**: (`a`, `b`) => `number`
-Defined in: ridb\_core.d.ts:897
+Defined in: ridb\_core.d.ts:965
#### Parameters
@@ -1546,7 +1542,7 @@ Defined in: ridb\_core.d.ts:897
> `readonly` **collection\_delete**: (`a`, `b`) => `number`
-Defined in: ridb\_core.d.ts:898
+Defined in: ridb\_core.d.ts:966
#### Parameters
@@ -1568,7 +1564,7 @@ Defined in: ridb\_core.d.ts:898
> `readonly` **collection\_find**: (`a`, `b`, `c`) => `number`
-Defined in: ridb\_core.d.ts:892
+Defined in: ridb\_core.d.ts:960
#### Parameters
@@ -1594,7 +1590,7 @@ Defined in: ridb\_core.d.ts:892
> `readonly` **collection\_findById**: (`a`, `b`) => `number`
-Defined in: ridb\_core.d.ts:895
+Defined in: ridb\_core.d.ts:963
#### Parameters
@@ -1616,7 +1612,7 @@ Defined in: ridb\_core.d.ts:895
> `readonly` **collection\_name**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:890
+Defined in: ridb\_core.d.ts:958
#### Parameters
@@ -1638,7 +1634,7 @@ Defined in: ridb\_core.d.ts:890
> `readonly` **collection\_parse\_query\_options**: (`a`, `b`, `c`) => `void`
-Defined in: ridb\_core.d.ts:893
+Defined in: ridb\_core.d.ts:961
#### Parameters
@@ -1664,7 +1660,7 @@ Defined in: ridb\_core.d.ts:893
> `readonly` **collection\_schema**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:891
+Defined in: ridb\_core.d.ts:959
#### Parameters
@@ -1686,7 +1682,7 @@ Defined in: ridb\_core.d.ts:891
> `readonly` **collection\_update**: (`a`, `b`) => `number`
-Defined in: ridb\_core.d.ts:896
+Defined in: ridb\_core.d.ts:964
#### Parameters
@@ -1708,7 +1704,7 @@ Defined in: ridb\_core.d.ts:896
> `readonly` **corestorage\_getIndexes**: (`a`, `b`, `c`, `d`) => `void`
-Defined in: ridb\_core.d.ts:872
+Defined in: ridb\_core.d.ts:969
#### Parameters
@@ -1738,7 +1734,7 @@ Defined in: ridb\_core.d.ts:872
> `readonly` **corestorage\_getPrimaryKeyTyped**: (`a`, `b`, `c`) => `void`
-Defined in: ridb\_core.d.ts:871
+Defined in: ridb\_core.d.ts:968
#### Parameters
@@ -1764,7 +1760,7 @@ Defined in: ridb\_core.d.ts:871
> `readonly` **corestorage\_matchesQuery**: (`a`, `b`, `c`, `d`) => `void`
-Defined in: ridb\_core.d.ts:873
+Defined in: ridb\_core.d.ts:970
#### Parameters
@@ -1794,7 +1790,7 @@ Defined in: ridb\_core.d.ts:873
> `readonly` **corestorage\_new**: () => `number`
-Defined in: ridb\_core.d.ts:870
+Defined in: ridb\_core.d.ts:967
#### Returns
@@ -1806,7 +1802,7 @@ Defined in: ridb\_core.d.ts:870
> `readonly` **database\_authenticate**: (`a`, `b`, `c`) => `number`
-Defined in: ridb\_core.d.ts:878
+Defined in: ridb\_core.d.ts:986
#### Parameters
@@ -1832,7 +1828,7 @@ Defined in: ridb\_core.d.ts:878
> `readonly` **database\_close**: (`a`) => `number`
-Defined in: ridb\_core.d.ts:876
+Defined in: ridb\_core.d.ts:984
#### Parameters
@@ -1850,7 +1846,7 @@ Defined in: ridb\_core.d.ts:876
> `readonly` **database\_collections**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:879
+Defined in: ridb\_core.d.ts:987
#### Parameters
@@ -1872,7 +1868,7 @@ Defined in: ridb\_core.d.ts:879
> `readonly` **database\_create**: (`a`, `b`, `c`, `d`, `e`, `f`, `g`, `h`, `i`) => `number`
-Defined in: ridb\_core.d.ts:880
+Defined in: ridb\_core.d.ts:988
#### Parameters
@@ -1922,7 +1918,7 @@ Defined in: ridb\_core.d.ts:880
> `readonly` **database\_start**: (`a`) => `number`
-Defined in: ridb\_core.d.ts:875
+Defined in: ridb\_core.d.ts:983
#### Parameters
@@ -1940,7 +1936,7 @@ Defined in: ridb\_core.d.ts:875
> `readonly` **database\_started**: (`a`) => `number`
-Defined in: ridb\_core.d.ts:877
+Defined in: ridb\_core.d.ts:985
#### Parameters
@@ -1958,7 +1954,7 @@ Defined in: ridb\_core.d.ts:877
> `readonly` **indexdb\_close**: (`a`) => `number`
-Defined in: ridb\_core.d.ts:991
+Defined in: ridb\_core.d.ts:902
#### Parameters
@@ -1976,7 +1972,7 @@ Defined in: ridb\_core.d.ts:991
> `readonly` **indexdb\_count**: (`a`, `b`, `c`, `d`, `e`) => `number`
-Defined in: ridb\_core.d.ts:990
+Defined in: ridb\_core.d.ts:901
#### Parameters
@@ -2010,7 +2006,7 @@ Defined in: ridb\_core.d.ts:990
> `readonly` **indexdb\_create**: (`a`, `b`, `c`) => `number`
-Defined in: ridb\_core.d.ts:986
+Defined in: ridb\_core.d.ts:897
#### Parameters
@@ -2036,7 +2032,7 @@ Defined in: ridb\_core.d.ts:986
> `readonly` **indexdb\_find**: (`a`, `b`, `c`, `d`, `e`) => `number`
-Defined in: ridb\_core.d.ts:988
+Defined in: ridb\_core.d.ts:899
#### Parameters
@@ -2070,7 +2066,7 @@ Defined in: ridb\_core.d.ts:988
> `readonly` **indexdb\_findDocumentById**: (`a`, `b`, `c`, `d`) => `number`
-Defined in: ridb\_core.d.ts:989
+Defined in: ridb\_core.d.ts:900
#### Parameters
@@ -2100,7 +2096,7 @@ Defined in: ridb\_core.d.ts:989
> `readonly` **indexdb\_get\_store**: (`a`, `b`, `c`, `d`) => `void`
-Defined in: ridb\_core.d.ts:985
+Defined in: ridb\_core.d.ts:896
#### Parameters
@@ -2130,7 +2126,7 @@ Defined in: ridb\_core.d.ts:985
> `readonly` **indexdb\_get\_stores**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:984
+Defined in: ridb\_core.d.ts:895
#### Parameters
@@ -2152,7 +2148,7 @@ Defined in: ridb\_core.d.ts:984
> `readonly` **indexdb\_start**: (`a`) => `number`
-Defined in: ridb\_core.d.ts:992
+Defined in: ridb\_core.d.ts:903
#### Parameters
@@ -2170,7 +2166,7 @@ Defined in: ridb\_core.d.ts:992
> `readonly` **indexdb\_write**: (`a`, `b`) => `number`
-Defined in: ridb\_core.d.ts:987
+Defined in: ridb\_core.d.ts:898
#### Parameters
@@ -2192,7 +2188,7 @@ Defined in: ridb\_core.d.ts:987
> `readonly` **inmemory\_close**: (`a`) => `number`
-Defined in: ridb\_core.d.ts:969
+Defined in: ridb\_core.d.ts:910
#### Parameters
@@ -2210,7 +2206,7 @@ Defined in: ridb\_core.d.ts:969
> `readonly` **inmemory\_count**: (`a`, `b`, `c`, `d`, `e`) => `number`
-Defined in: ridb\_core.d.ts:968
+Defined in: ridb\_core.d.ts:909
#### Parameters
@@ -2244,7 +2240,7 @@ Defined in: ridb\_core.d.ts:968
> `readonly` **inmemory\_create**: (`a`, `b`, `c`) => `number`
-Defined in: ridb\_core.d.ts:964
+Defined in: ridb\_core.d.ts:905
#### Parameters
@@ -2270,7 +2266,7 @@ Defined in: ridb\_core.d.ts:964
> `readonly` **inmemory\_find**: (`a`, `b`, `c`, `d`, `e`) => `number`
-Defined in: ridb\_core.d.ts:966
+Defined in: ridb\_core.d.ts:907
#### Parameters
@@ -2304,7 +2300,7 @@ Defined in: ridb\_core.d.ts:966
> `readonly` **inmemory\_findDocumentById**: (`a`, `b`, `c`, `d`) => `number`
-Defined in: ridb\_core.d.ts:967
+Defined in: ridb\_core.d.ts:908
#### Parameters
@@ -2334,7 +2330,7 @@ Defined in: ridb\_core.d.ts:967
> `readonly` **inmemory\_start**: (`a`) => `number`
-Defined in: ridb\_core.d.ts:970
+Defined in: ridb\_core.d.ts:911
#### Parameters
@@ -2352,7 +2348,7 @@ Defined in: ridb\_core.d.ts:970
> `readonly` **inmemory\_write**: (`a`, `b`) => `number`
-Defined in: ridb\_core.d.ts:965
+Defined in: ridb\_core.d.ts:906
#### Parameters
@@ -2374,7 +2370,7 @@ Defined in: ridb\_core.d.ts:965
> `readonly` **is\_debug\_mode**: () => `number`
-Defined in: ridb\_core.d.ts:906
+Defined in: ridb\_core.d.ts:956
#### Returns
@@ -2386,7 +2382,7 @@ Defined in: ridb\_core.d.ts:906
> `readonly` **main\_js**: () => `void`
-Defined in: ridb\_core.d.ts:905
+Defined in: ridb\_core.d.ts:955
#### Returns
@@ -2406,7 +2402,7 @@ Defined in: ridb\_core.d.ts:869
> `readonly` **operation\_collection**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:882
+Defined in: ridb\_core.d.ts:975
#### Parameters
@@ -2428,7 +2424,7 @@ Defined in: ridb\_core.d.ts:882
> `readonly` **operation\_data**: (`a`) => `number`
-Defined in: ridb\_core.d.ts:884
+Defined in: ridb\_core.d.ts:977
#### Parameters
@@ -2446,7 +2442,7 @@ Defined in: ridb\_core.d.ts:884
> `readonly` **operation\_opType**: (`a`) => `number`
-Defined in: ridb\_core.d.ts:883
+Defined in: ridb\_core.d.ts:976
#### Parameters
@@ -2464,7 +2460,7 @@ Defined in: ridb\_core.d.ts:883
> `readonly` **operation\_primaryKey**: (`a`) => `number`
-Defined in: ridb\_core.d.ts:886
+Defined in: ridb\_core.d.ts:979
#### Parameters
@@ -2482,7 +2478,7 @@ Defined in: ridb\_core.d.ts:886
> `readonly` **operation\_primaryKeyField**: (`a`) => `number`
-Defined in: ridb\_core.d.ts:885
+Defined in: ridb\_core.d.ts:978
#### Parameters
@@ -2500,7 +2496,7 @@ Defined in: ridb\_core.d.ts:885
> `readonly` **operation\_primaryKeyIndex**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:887
+Defined in: ridb\_core.d.ts:980
#### Parameters
@@ -2522,7 +2518,7 @@ Defined in: ridb\_core.d.ts:887
> `readonly` **property\_is\_valid**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:997
+Defined in: ridb\_core.d.ts:871
#### Parameters
@@ -2544,7 +2540,7 @@ Defined in: ridb\_core.d.ts:997
> `readonly` **property\_items**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:999
+Defined in: ridb\_core.d.ts:873
#### Parameters
@@ -2566,7 +2562,7 @@ Defined in: ridb\_core.d.ts:999
> `readonly` **property\_maxItems**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:1000
+Defined in: ridb\_core.d.ts:874
#### Parameters
@@ -2588,7 +2584,7 @@ Defined in: ridb\_core.d.ts:1000
> `readonly` **property\_maxLength**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:1002
+Defined in: ridb\_core.d.ts:876
#### Parameters
@@ -2610,7 +2606,7 @@ Defined in: ridb\_core.d.ts:1002
> `readonly` **property\_minItems**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:1001
+Defined in: ridb\_core.d.ts:875
#### Parameters
@@ -2632,7 +2628,7 @@ Defined in: ridb\_core.d.ts:1001
> `readonly` **property\_minLength**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:1003
+Defined in: ridb\_core.d.ts:877
#### Parameters
@@ -2654,7 +2650,7 @@ Defined in: ridb\_core.d.ts:1003
> `readonly` **property\_properties**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:1004
+Defined in: ridb\_core.d.ts:878
#### Parameters
@@ -2676,7 +2672,7 @@ Defined in: ridb\_core.d.ts:1004
> `readonly` **property\_type**: (`a`) => `number`
-Defined in: ridb\_core.d.ts:998
+Defined in: ridb\_core.d.ts:872
#### Parameters
@@ -2694,7 +2690,7 @@ Defined in: ridb\_core.d.ts:998
> `readonly` **query\_get**: (`a`, `b`, `c`, `d`) => `void`
-Defined in: ridb\_core.d.ts:913
+Defined in: ridb\_core.d.ts:925
#### Parameters
@@ -2724,7 +2720,7 @@ Defined in: ridb\_core.d.ts:913
> `readonly` **query\_get\_properties**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:910
+Defined in: ridb\_core.d.ts:922
#### Parameters
@@ -2746,7 +2742,7 @@ Defined in: ridb\_core.d.ts:910
> `readonly` **query\_new**: (`a`, `b`, `c`) => `void`
-Defined in: ridb\_core.d.ts:908
+Defined in: ridb\_core.d.ts:920
#### Parameters
@@ -2772,7 +2768,7 @@ Defined in: ridb\_core.d.ts:908
> `readonly` **query\_parse**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:911
+Defined in: ridb\_core.d.ts:923
#### Parameters
@@ -2794,7 +2790,7 @@ Defined in: ridb\_core.d.ts:911
> `readonly` **query\_process\_query**: (`a`, `b`, `c`) => `void`
-Defined in: ridb\_core.d.ts:912
+Defined in: ridb\_core.d.ts:924
#### Parameters
@@ -2820,7 +2816,7 @@ Defined in: ridb\_core.d.ts:912
> `readonly` **query\_query**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:909
+Defined in: ridb\_core.d.ts:921
#### Parameters
@@ -2842,7 +2838,7 @@ Defined in: ridb\_core.d.ts:909
> `readonly` **queryoptions\_limit**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:994
+Defined in: ridb\_core.d.ts:972
#### Parameters
@@ -2864,7 +2860,7 @@ Defined in: ridb\_core.d.ts:994
> `readonly` **queryoptions\_offset**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:995
+Defined in: ridb\_core.d.ts:973
#### Parameters
@@ -2886,7 +2882,7 @@ Defined in: ridb\_core.d.ts:995
> `readonly` **ridberror\_authentication**: (`a`, `b`, `c`) => `number`
-Defined in: ridb\_core.d.ts:979
+Defined in: ridb\_core.d.ts:890
#### Parameters
@@ -2912,7 +2908,7 @@ Defined in: ridb\_core.d.ts:979
> `readonly` **ridberror\_code**: (`a`) => `number`
-Defined in: ridb\_core.d.ts:974
+Defined in: ridb\_core.d.ts:885
#### Parameters
@@ -2930,7 +2926,7 @@ Defined in: ridb\_core.d.ts:974
> `readonly` **ridberror\_error**: (`a`, `b`, `c`) => `number`
-Defined in: ridb\_core.d.ts:977
+Defined in: ridb\_core.d.ts:888
#### Parameters
@@ -2956,7 +2952,7 @@ Defined in: ridb\_core.d.ts:977
> `readonly` **ridberror\_from**: (`a`) => `number`
-Defined in: ridb\_core.d.ts:976
+Defined in: ridb\_core.d.ts:887
#### Parameters
@@ -2974,7 +2970,7 @@ Defined in: ridb\_core.d.ts:976
> `readonly` **ridberror\_hook**: (`a`, `b`, `c`) => `number`
-Defined in: ridb\_core.d.ts:982
+Defined in: ridb\_core.d.ts:893
#### Parameters
@@ -3000,7 +2996,7 @@ Defined in: ridb\_core.d.ts:982
> `readonly` **ridberror\_message**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:975
+Defined in: ridb\_core.d.ts:886
#### Parameters
@@ -3022,7 +3018,7 @@ Defined in: ridb\_core.d.ts:975
> `readonly` **ridberror\_new**: (`a`, `b`, `c`, `d`, `e`) => `number`
-Defined in: ridb\_core.d.ts:972
+Defined in: ridb\_core.d.ts:883
#### Parameters
@@ -3056,7 +3052,7 @@ Defined in: ridb\_core.d.ts:972
> `readonly` **ridberror\_query**: (`a`, `b`, `c`) => `number`
-Defined in: ridb\_core.d.ts:978
+Defined in: ridb\_core.d.ts:889
#### Parameters
@@ -3082,7 +3078,7 @@ Defined in: ridb\_core.d.ts:978
> `readonly` **ridberror\_serialisation**: (`a`, `b`, `c`) => `number`
-Defined in: ridb\_core.d.ts:980
+Defined in: ridb\_core.d.ts:891
#### Parameters
@@ -3108,7 +3104,7 @@ Defined in: ridb\_core.d.ts:980
> `readonly` **ridberror\_type**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:973
+Defined in: ridb\_core.d.ts:884
#### Parameters
@@ -3130,7 +3126,7 @@ Defined in: ridb\_core.d.ts:973
> `readonly` **ridberror\_validation**: (`a`, `b`, `c`) => `number`
-Defined in: ridb\_core.d.ts:981
+Defined in: ridb\_core.d.ts:892
#### Parameters
@@ -3156,7 +3152,7 @@ Defined in: ridb\_core.d.ts:981
> `readonly` **schema\_create**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:946
+Defined in: ridb\_core.d.ts:998
#### Parameters
@@ -3178,7 +3174,7 @@ Defined in: ridb\_core.d.ts:946
> `readonly` **schema\_encrypted**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:951
+Defined in: ridb\_core.d.ts:1003
#### Parameters
@@ -3200,7 +3196,7 @@ Defined in: ridb\_core.d.ts:951
> `readonly` **schema\_indexes**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:950
+Defined in: ridb\_core.d.ts:1002
#### Parameters
@@ -3222,7 +3218,7 @@ Defined in: ridb\_core.d.ts:950
> `readonly` **schema\_is\_valid**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:945
+Defined in: ridb\_core.d.ts:997
#### Parameters
@@ -3244,7 +3240,7 @@ Defined in: ridb\_core.d.ts:945
> `readonly` **schema\_primaryKey**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:948
+Defined in: ridb\_core.d.ts:1000
#### Parameters
@@ -3266,7 +3262,7 @@ Defined in: ridb\_core.d.ts:948
> `readonly` **schema\_properties**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:952
+Defined in: ridb\_core.d.ts:1004
#### Parameters
@@ -3288,7 +3284,7 @@ Defined in: ridb\_core.d.ts:952
> `readonly` **schema\_type**: (`a`, `b`) => `void`
-Defined in: ridb\_core.d.ts:949
+Defined in: ridb\_core.d.ts:1001
#### Parameters
@@ -3310,7 +3306,7 @@ Defined in: ridb\_core.d.ts:949
> `readonly` **schema\_validate**: (`a`, `b`, `c`) => `void`
-Defined in: ridb\_core.d.ts:944
+Defined in: ridb\_core.d.ts:996
#### Parameters
@@ -3336,7 +3332,7 @@ Defined in: ridb\_core.d.ts:944
> `readonly` **schema\_version**: (`a`) => `number`
-Defined in: ridb\_core.d.ts:947
+Defined in: ridb\_core.d.ts:999
#### Parameters
diff --git a/docs/@trust0/ridb-core/type-aliases/AnyVersionGreaterThan1.md b/docs/@trust0/ridb-core/type-aliases/AnyVersionGreaterThan1.md
index 57182b08..5fd04fd6 100644
--- a/docs/@trust0/ridb-core/type-aliases/AnyVersionGreaterThan1.md
+++ b/docs/@trust0/ridb-core/type-aliases/AnyVersionGreaterThan1.md
@@ -8,7 +8,7 @@
> **AnyVersionGreaterThan1**\<`T`\> = `true` *extends* `{ [K in keyof T]: IsVersionGreaterThan0 }`\[keyof `T`\] ? `true` : `false`
-Defined in: ridb\_core.d.ts:535
+Defined in: ridb\_core.d.ts:727
## Type Parameters
diff --git a/docs/@trust0/ridb-core/type-aliases/BasePluginOptions.md b/docs/@trust0/ridb-core/type-aliases/BasePluginOptions.md
index d59cd52f..083ce83f 100644
--- a/docs/@trust0/ridb-core/type-aliases/BasePluginOptions.md
+++ b/docs/@trust0/ridb-core/type-aliases/BasePluginOptions.md
@@ -8,7 +8,7 @@
> **BasePluginOptions** = `object`
-Defined in: ridb\_core.d.ts:574
+Defined in: ridb\_core.d.ts:192
## Properties
@@ -16,7 +16,7 @@ Defined in: ridb\_core.d.ts:574
> `optional` **docCreateHook**: [`Hook`](Hook.md)
-Defined in: ridb\_core.d.ts:575
+Defined in: ridb\_core.d.ts:193
***
@@ -24,4 +24,4 @@ Defined in: ridb\_core.d.ts:575
> `optional` **docRecoverHook**: [`Hook`](Hook.md)
-Defined in: ridb\_core.d.ts:576
+Defined in: ridb\_core.d.ts:194
diff --git a/docs/@trust0/ridb-core/type-aliases/BaseStorageOptions.md b/docs/@trust0/ridb-core/type-aliases/BaseStorageOptions.md
index d61e34aa..0bfe0e53 100644
--- a/docs/@trust0/ridb-core/type-aliases/BaseStorageOptions.md
+++ b/docs/@trust0/ridb-core/type-aliases/BaseStorageOptions.md
@@ -8,7 +8,7 @@
> **BaseStorageOptions** = `object`
-Defined in: ridb\_core.d.ts:339
+Defined in: ridb\_core.d.ts:567
## Index Signature
diff --git a/docs/@trust0/ridb-core/type-aliases/CreateDoc.md b/docs/@trust0/ridb-core/type-aliases/CreateDoc.md
index 46d44744..24bd32b3 100644
--- a/docs/@trust0/ridb-core/type-aliases/CreateDoc.md
+++ b/docs/@trust0/ridb-core/type-aliases/CreateDoc.md
@@ -8,7 +8,7 @@
> **CreateDoc**\<`T`\> = `{ [K in keyof T["properties"] as IsOptional extends true ? K : never]?: ExtractType }` & `{ [K in keyof T["properties"] as IsOptional extends true ? never : K]: ExtractType }` & `object`
-Defined in: ridb\_core.d.ts:272
+Defined in: ridb\_core.d.ts:321
CreateDoc is a utility type for document creation that properly handles required vs optional fields
during the creation process. Fields with default values or required: false become optional.
diff --git a/docs/@trust0/ridb-core/type-aliases/CreateStorage.md b/docs/@trust0/ridb-core/type-aliases/CreateStorage.md
index 14e81b49..badc9373 100644
--- a/docs/@trust0/ridb-core/type-aliases/CreateStorage.md
+++ b/docs/@trust0/ridb-core/type-aliases/CreateStorage.md
@@ -8,7 +8,7 @@
> **CreateStorage** = \<`T`\>(`records`) => `Promise`\<[`BaseStorage`](../classes/BaseStorage.md)\<`T`\>\>
-Defined in: ridb\_core.d.ts:176
+Defined in: ridb\_core.d.ts:515
Represents a function type for creating storage with the provided schema type records.
diff --git a/docs/@trust0/ridb-core/type-aliases/Doc.md b/docs/@trust0/ridb-core/type-aliases/Doc.md
index 409f9b08..d4a1efbf 100644
--- a/docs/@trust0/ridb-core/type-aliases/Doc.md
+++ b/docs/@trust0/ridb-core/type-aliases/Doc.md
@@ -8,7 +8,7 @@
> **Doc**\<`T`\> = `{ [K in keyof T["properties"]]: ExtractType }` & `object`
-Defined in: ridb\_core.d.ts:257
+Defined in: ridb\_core.d.ts:306
Doc is a utility type that transforms a schema type into a document type where each property is mapped to its extracted type.
diff --git a/docs/@trust0/ridb-core/type-aliases/EnumerateFrom1To.md b/docs/@trust0/ridb-core/type-aliases/EnumerateFrom1To.md
index b04c37d1..08d5fbb6 100644
--- a/docs/@trust0/ridb-core/type-aliases/EnumerateFrom1To.md
+++ b/docs/@trust0/ridb-core/type-aliases/EnumerateFrom1To.md
@@ -8,7 +8,7 @@
> **EnumerateFrom1To**\<`N`\> = `Exclude`\<[`EnumerateUpTo`](EnumerateUpTo.md)\<`N`\>, `0`\> \| `N` *extends* `0` ? `never` : `N`
-Defined in: ridb\_core.d.ts:527
+Defined in: ridb\_core.d.ts:719
## Type Parameters
diff --git a/docs/@trust0/ridb-core/type-aliases/EnumerateUpTo.md b/docs/@trust0/ridb-core/type-aliases/EnumerateUpTo.md
index 4b70153b..fdaa216a 100644
--- a/docs/@trust0/ridb-core/type-aliases/EnumerateUpTo.md
+++ b/docs/@trust0/ridb-core/type-aliases/EnumerateUpTo.md
@@ -8,7 +8,7 @@
> **EnumerateUpTo**\<`N`, `Acc`\> = `Acc`\[`"length"`\] *extends* `N` ? `Acc`\[`number`\] : `EnumerateUpTo`\<`N`, \[`...Acc`, `Acc`\[`"length"`\]\]\>
-Defined in: ridb\_core.d.ts:520
+Defined in: ridb\_core.d.ts:712
## Type Parameters
diff --git a/docs/@trust0/ridb-core/type-aliases/ExtractType.md b/docs/@trust0/ridb-core/type-aliases/ExtractType.md
index 8a22e988..cfaffe15 100644
--- a/docs/@trust0/ridb-core/type-aliases/ExtractType.md
+++ b/docs/@trust0/ridb-core/type-aliases/ExtractType.md
@@ -8,7 +8,7 @@
> **ExtractType**\<`T`\> = `T` *extends* `"string"` ? `string` : `T` *extends* `"number"` ? `number` : `T` *extends* `"boolean"` ? `boolean` : `T` *extends* `"object"` ? `object` : `T` *extends* `"array"` ? `any`[] : `undefined`
-Defined in: ridb\_core.d.ts:235
+Defined in: ridb\_core.d.ts:284
ExtractType is a utility type that maps a string representing a basic data type to the actual TypeScript type.
diff --git a/docs/@trust0/ridb-core/type-aliases/Hook.md b/docs/@trust0/ridb-core/type-aliases/Hook.md
index cc37edc1..c0b2934f 100644
--- a/docs/@trust0/ridb-core/type-aliases/Hook.md
+++ b/docs/@trust0/ridb-core/type-aliases/Hook.md
@@ -8,7 +8,7 @@
> **Hook** = (`schema`, `migration`, `doc`) => [`Doc`](Doc.md)\<[`SchemaType`](SchemaType.md)\>
-Defined in: ridb\_core.d.ts:568
+Defined in: ridb\_core.d.ts:186
## Parameters
diff --git a/docs/@trust0/ridb-core/type-aliases/InOperator.md b/docs/@trust0/ridb-core/type-aliases/InOperator.md
index 9fdef106..950c6963 100644
--- a/docs/@trust0/ridb-core/type-aliases/InOperator.md
+++ b/docs/@trust0/ridb-core/type-aliases/InOperator.md
@@ -8,7 +8,7 @@
> **InOperator**\<`T`\> = `object`
-Defined in: ridb\_core.d.ts:385
+Defined in: ridb\_core.d.ts:213
## Type Parameters
@@ -22,4 +22,4 @@ Defined in: ridb\_core.d.ts:385
> `optional` **$in**: `T`[]
-Defined in: ridb\_core.d.ts:385
+Defined in: ridb\_core.d.ts:213
diff --git a/docs/@trust0/ridb-core/type-aliases/InternalsRecord.md b/docs/@trust0/ridb-core/type-aliases/InternalsRecord.md
index b05f85a9..c4dceeca 100644
--- a/docs/@trust0/ridb-core/type-aliases/InternalsRecord.md
+++ b/docs/@trust0/ridb-core/type-aliases/InternalsRecord.md
@@ -8,7 +8,7 @@
> **InternalsRecord** = `object`
-Defined in: ridb\_core.d.ts:220
+Defined in: ridb\_core.d.ts:269
## Index Signature
diff --git a/docs/@trust0/ridb-core/type-aliases/IsOptional.md b/docs/@trust0/ridb-core/type-aliases/IsOptional.md
index 672e56e3..d19425ea 100644
--- a/docs/@trust0/ridb-core/type-aliases/IsOptional.md
+++ b/docs/@trust0/ridb-core/type-aliases/IsOptional.md
@@ -8,7 +8,7 @@
> **IsOptional**\<`T`\> = `T` *extends* `object` ? `T` *extends* `object` ? `false` : `true` : `true`
-Defined in: ridb\_core.d.ts:243
+Defined in: ridb\_core.d.ts:292
## Type Parameters
diff --git a/docs/@trust0/ridb-core/type-aliases/IsVersionGreaterThan0.md b/docs/@trust0/ridb-core/type-aliases/IsVersionGreaterThan0.md
index 2c271b25..3fd4752a 100644
--- a/docs/@trust0/ridb-core/type-aliases/IsVersionGreaterThan0.md
+++ b/docs/@trust0/ridb-core/type-aliases/IsVersionGreaterThan0.md
@@ -8,7 +8,7 @@
> **IsVersionGreaterThan0**\<`V`\> = `V` *extends* `0` ? `false` : `true`
-Defined in: ridb\_core.d.ts:531
+Defined in: ridb\_core.d.ts:723
## Type Parameters
diff --git a/docs/@trust0/ridb-core/type-aliases/LogicalOperators.md b/docs/@trust0/ridb-core/type-aliases/LogicalOperators.md
index 2703f363..f21e8641 100644
--- a/docs/@trust0/ridb-core/type-aliases/LogicalOperators.md
+++ b/docs/@trust0/ridb-core/type-aliases/LogicalOperators.md
@@ -8,7 +8,7 @@
> **LogicalOperators**\<`T`\> = `object`
-Defined in: ridb\_core.d.ts:392
+Defined in: ridb\_core.d.ts:220
## Type Parameters
@@ -22,7 +22,7 @@ Defined in: ridb\_core.d.ts:392
> `optional` **$and**: `Partial`\<[`QueryType`](QueryType.md)\<`T`\>\>[]
-Defined in: ridb\_core.d.ts:393
+Defined in: ridb\_core.d.ts:221
***
@@ -30,4 +30,4 @@ Defined in: ridb\_core.d.ts:393
> `optional` **$or**: `Partial`\<[`QueryType`](QueryType.md)\<`T`\>\>[]
-Defined in: ridb\_core.d.ts:394
+Defined in: ridb\_core.d.ts:222
diff --git a/docs/@trust0/ridb-core/type-aliases/MigrationFunction.md b/docs/@trust0/ridb-core/type-aliases/MigrationFunction.md
index 35aed539..d511c22c 100644
--- a/docs/@trust0/ridb-core/type-aliases/MigrationFunction.md
+++ b/docs/@trust0/ridb-core/type-aliases/MigrationFunction.md
@@ -8,7 +8,7 @@
> **MigrationFunction**\<`T`\> = (`doc`) => [`Doc`](Doc.md)\<`T`\>
-Defined in: ridb\_core.d.ts:541
+Defined in: ridb\_core.d.ts:733
## Type Parameters
diff --git a/docs/@trust0/ridb-core/type-aliases/MigrationPathsForSchema.md b/docs/@trust0/ridb-core/type-aliases/MigrationPathsForSchema.md
index 7eb216ae..64a61520 100644
--- a/docs/@trust0/ridb-core/type-aliases/MigrationPathsForSchema.md
+++ b/docs/@trust0/ridb-core/type-aliases/MigrationPathsForSchema.md
@@ -8,7 +8,7 @@
> **MigrationPathsForSchema**\<`T`\> = `T`\[`"version"`\] *extends* `0` ? `object` : `{ [K in EnumerateFrom1To]: MigrationFunction }`
-Defined in: ridb\_core.d.ts:543
+Defined in: ridb\_core.d.ts:735
## Type Parameters
diff --git a/docs/@trust0/ridb-core/type-aliases/MigrationPathsForSchemas.md b/docs/@trust0/ridb-core/type-aliases/MigrationPathsForSchemas.md
index 7057ea04..ff73695c 100644
--- a/docs/@trust0/ridb-core/type-aliases/MigrationPathsForSchemas.md
+++ b/docs/@trust0/ridb-core/type-aliases/MigrationPathsForSchemas.md
@@ -8,7 +8,7 @@
> **MigrationPathsForSchemas**\<`T`\> = `{ [K in keyof T]: MigrationPathsForSchema }`
-Defined in: ridb\_core.d.ts:550
+Defined in: ridb\_core.d.ts:742
## Type Parameters
diff --git a/docs/@trust0/ridb-core/type-aliases/MigrationsParameter.md b/docs/@trust0/ridb-core/type-aliases/MigrationsParameter.md
index dfecf298..0a5288f8 100644
--- a/docs/@trust0/ridb-core/type-aliases/MigrationsParameter.md
+++ b/docs/@trust0/ridb-core/type-aliases/MigrationsParameter.md
@@ -8,7 +8,7 @@
> **MigrationsParameter**\<`T`\> = [`AnyVersionGreaterThan1`](AnyVersionGreaterThan1.md)\<`T`\> *extends* `true` ? `object` : `object`
-Defined in: ridb\_core.d.ts:556
+Defined in: ridb\_core.d.ts:748
## Type Parameters
diff --git a/docs/@trust0/ridb-core/type-aliases/NInOperator.md b/docs/@trust0/ridb-core/type-aliases/NInOperator.md
index a8e41fb0..612a3116 100644
--- a/docs/@trust0/ridb-core/type-aliases/NInOperator.md
+++ b/docs/@trust0/ridb-core/type-aliases/NInOperator.md
@@ -8,7 +8,7 @@
> **NInOperator**\<`T`\> = `object`
-Defined in: ridb\_core.d.ts:386
+Defined in: ridb\_core.d.ts:214
## Type Parameters
@@ -22,4 +22,4 @@ Defined in: ridb\_core.d.ts:386
> `optional` **$nin**: `T`[]
-Defined in: ridb\_core.d.ts:386
+Defined in: ridb\_core.d.ts:214
diff --git a/docs/@trust0/ridb-core/type-aliases/Operation.md b/docs/@trust0/ridb-core/type-aliases/Operation.md
index 92e2364c..8a9f4caa 100644
--- a/docs/@trust0/ridb-core/type-aliases/Operation.md
+++ b/docs/@trust0/ridb-core/type-aliases/Operation.md
@@ -8,7 +8,7 @@
> **Operation**\<`T`\> = `object`
-Defined in: ridb\_core.d.ts:198
+Defined in: ridb\_core.d.ts:406
Represents an operation to be performed on a collection.
@@ -26,7 +26,7 @@ The schema type of the collection.
> **collection**: `string`
-Defined in: ridb\_core.d.ts:202
+Defined in: ridb\_core.d.ts:410
The name of the collection on which the operation will be performed.
@@ -36,7 +36,7 @@ The name of the collection on which the operation will be performed.
> **data**: [`Doc`](Doc.md)\<`T`\>
-Defined in: ridb\_core.d.ts:212
+Defined in: ridb\_core.d.ts:420
The data involved in the operation, conforming to the schema type.
@@ -46,7 +46,7 @@ The data involved in the operation, conforming to the schema type.
> **opType**: [`OpType`](../enumerations/OpType.md)
-Defined in: ridb\_core.d.ts:207
+Defined in: ridb\_core.d.ts:415
The type of operation to be performed (e.g., CREATE, UPDATE, DELETE).
@@ -56,7 +56,7 @@ The type of operation to be performed (e.g., CREATE, UPDATE, DELETE).
> `optional` **primaryKey**: `string`
-Defined in: ridb\_core.d.ts:215
+Defined in: ridb\_core.d.ts:423
***
@@ -64,4 +64,4 @@ Defined in: ridb\_core.d.ts:215
> `optional` **primaryKeyField**: `string`
-Defined in: ridb\_core.d.ts:214
+Defined in: ridb\_core.d.ts:422
diff --git a/docs/@trust0/ridb-core/type-aliases/OperatorOrType.md b/docs/@trust0/ridb-core/type-aliases/OperatorOrType.md
index 1e47eebf..682f9785 100644
--- a/docs/@trust0/ridb-core/type-aliases/OperatorOrType.md
+++ b/docs/@trust0/ridb-core/type-aliases/OperatorOrType.md
@@ -8,7 +8,7 @@
> **OperatorOrType**\<`T`\> = `T` *extends* `number` ? `T` \| [`Operators`](Operators.md)\<`T`\> \| [`InOperator`](InOperator.md)\<`T`\> \| [`NInOperator`](NInOperator.md)\<`T`\> : `T` \| [`InOperator`](InOperator.md)\<`T`\> \| [`NInOperator`](NInOperator.md)\<`T`\>
-Defined in: ridb\_core.d.ts:388
+Defined in: ridb\_core.d.ts:216
## Type Parameters
diff --git a/docs/@trust0/ridb-core/type-aliases/Operators.md b/docs/@trust0/ridb-core/type-aliases/Operators.md
index 396c15ef..de315483 100644
--- a/docs/@trust0/ridb-core/type-aliases/Operators.md
+++ b/docs/@trust0/ridb-core/type-aliases/Operators.md
@@ -8,7 +8,7 @@
> **Operators**\<`T`\> = `object`
-Defined in: ridb\_core.d.ts:376
+Defined in: ridb\_core.d.ts:204
## Type Parameters
@@ -22,7 +22,7 @@ Defined in: ridb\_core.d.ts:376
> `optional` **$eq**: `T`
-Defined in: ridb\_core.d.ts:381
+Defined in: ridb\_core.d.ts:209
***
@@ -30,7 +30,7 @@ Defined in: ridb\_core.d.ts:381
> `optional` **$gt**: `number`
-Defined in: ridb\_core.d.ts:378
+Defined in: ridb\_core.d.ts:206
***
@@ -38,7 +38,7 @@ Defined in: ridb\_core.d.ts:378
> `optional` **$gte**: `number`
-Defined in: ridb\_core.d.ts:377
+Defined in: ridb\_core.d.ts:205
***
@@ -46,7 +46,7 @@ Defined in: ridb\_core.d.ts:377
> `optional` **$lt**: `number`
-Defined in: ridb\_core.d.ts:379
+Defined in: ridb\_core.d.ts:207
***
@@ -54,7 +54,7 @@ Defined in: ridb\_core.d.ts:379
> `optional` **$lte**: `number`
-Defined in: ridb\_core.d.ts:380
+Defined in: ridb\_core.d.ts:208
***
@@ -62,4 +62,4 @@ Defined in: ridb\_core.d.ts:380
> `optional` **$ne**: `T`
-Defined in: ridb\_core.d.ts:382
+Defined in: ridb\_core.d.ts:210
diff --git a/docs/@trust0/ridb-core/type-aliases/QueryOptions.md b/docs/@trust0/ridb-core/type-aliases/QueryOptions.md
index 26b04cab..c8fbaa49 100644
--- a/docs/@trust0/ridb-core/type-aliases/QueryOptions.md
+++ b/docs/@trust0/ridb-core/type-aliases/QueryOptions.md
@@ -8,7 +8,7 @@
> **QueryOptions** = `object`
-Defined in: ridb\_core.d.ts:284
+Defined in: ridb\_core.d.ts:333
## Properties
@@ -16,7 +16,7 @@ Defined in: ridb\_core.d.ts:284
> `optional` **limit**: `number`
-Defined in: ridb\_core.d.ts:285
+Defined in: ridb\_core.d.ts:334
***
@@ -24,4 +24,4 @@ Defined in: ridb\_core.d.ts:285
> `optional` **offset**: `number`
-Defined in: ridb\_core.d.ts:286
+Defined in: ridb\_core.d.ts:335
diff --git a/docs/@trust0/ridb-core/type-aliases/QueryType.md b/docs/@trust0/ridb-core/type-aliases/QueryType.md
index ad9af3a7..1c038ef3 100644
--- a/docs/@trust0/ridb-core/type-aliases/QueryType.md
+++ b/docs/@trust0/ridb-core/type-aliases/QueryType.md
@@ -8,7 +8,7 @@
> **QueryType**\<`T`\> = `{ [K in keyof T["properties"] as ExtractType extends undefined ? never : K]?: OperatorOrType> }` & [`LogicalOperators`](LogicalOperators.md)\<`T`\> \| [`LogicalOperators`](LogicalOperators.md)\<`T`\>[]
-Defined in: ridb\_core.d.ts:397
+Defined in: ridb\_core.d.ts:225
## Type Parameters
diff --git a/docs/@trust0/ridb-core/type-aliases/RIDBModule.md b/docs/@trust0/ridb-core/type-aliases/RIDBModule.md
index 250a830e..dc7fd004 100644
--- a/docs/@trust0/ridb-core/type-aliases/RIDBModule.md
+++ b/docs/@trust0/ridb-core/type-aliases/RIDBModule.md
@@ -8,7 +8,7 @@
> **RIDBModule** = `object`
-Defined in: ridb\_core.d.ts:183
+Defined in: ridb\_core.d.ts:522
Represents a storage module with a method for creating storage.
@@ -18,7 +18,7 @@ Represents a storage module with a method for creating storage.
> **apply**: (`plugins`) => [`BasePlugin`](../classes/BasePlugin.md)[]
-Defined in: ridb\_core.d.ts:188
+Defined in: ridb\_core.d.ts:527
Plugin constructors array
diff --git a/docs/@trust0/ridb-core/type-aliases/SchemaType.md b/docs/@trust0/ridb-core/type-aliases/SchemaType.md
index 52f078a6..666ffb97 100644
--- a/docs/@trust0/ridb-core/type-aliases/SchemaType.md
+++ b/docs/@trust0/ridb-core/type-aliases/SchemaType.md
@@ -8,7 +8,7 @@
> **SchemaType** = `object`
-Defined in: ridb\_core.d.ts:415
+Defined in: ridb\_core.d.ts:607
Represents the type definition for a schema.
@@ -18,7 +18,7 @@ Represents the type definition for a schema.
> `optional` **encrypted**: `string`[]
-Defined in: ridb\_core.d.ts:431
+Defined in: ridb\_core.d.ts:623
***
@@ -26,7 +26,7 @@ Defined in: ridb\_core.d.ts:431
> `optional` **indexes**: `string`[]
-Defined in: ridb\_core.d.ts:430
+Defined in: ridb\_core.d.ts:622
***
@@ -34,7 +34,7 @@ Defined in: ridb\_core.d.ts:430
> **primaryKey**: `string`
-Defined in: ridb\_core.d.ts:424
+Defined in: ridb\_core.d.ts:616
The primary key of the schema.
@@ -44,7 +44,7 @@ The primary key of the schema.
> **properties**: `object`
-Defined in: ridb\_core.d.ts:435
+Defined in: ridb\_core.d.ts:627
The properties defined in the schema.
@@ -58,7 +58,7 @@ The properties defined in the schema.
> **type**: `SchemaFieldType`
-Defined in: ridb\_core.d.ts:429
+Defined in: ridb\_core.d.ts:621
The type of the schema.
@@ -68,6 +68,6 @@ The type of the schema.
> **version**: `number`
-Defined in: ridb\_core.d.ts:419
+Defined in: ridb\_core.d.ts:611
The version of the schema.
diff --git a/docs/@trust0/ridb-core/type-aliases/SchemaTypeRecord.md b/docs/@trust0/ridb-core/type-aliases/SchemaTypeRecord.md
index 5e4a77dd..e547f219 100644
--- a/docs/@trust0/ridb-core/type-aliases/SchemaTypeRecord.md
+++ b/docs/@trust0/ridb-core/type-aliases/SchemaTypeRecord.md
@@ -8,7 +8,7 @@
> **SchemaTypeRecord** = `object`
-Defined in: ridb\_core.d.ts:642
+Defined in: ridb\_core.d.ts:536
**`Internal`**
diff --git a/docs/@trust0/ridb-core/variables/SchemaFieldType.md b/docs/@trust0/ridb-core/variables/SchemaFieldType.md
index 8b6ccbf8..1eb391c2 100644
--- a/docs/@trust0/ridb-core/variables/SchemaFieldType.md
+++ b/docs/@trust0/ridb-core/variables/SchemaFieldType.md
@@ -8,7 +8,7 @@
> `const` **SchemaFieldType**: `object`
-Defined in: ridb\_core.d.ts:586
+Defined in: ridb\_core.d.ts:240
## Type declaration
diff --git a/docs/@trust0/ridb-level/classes/LevelDBStorage.md b/docs/@trust0/ridb-level/classes/LevelDBStorage.md
index 8bdb2ce2..cf348da7 100644
--- a/docs/@trust0/ridb-level/classes/LevelDBStorage.md
+++ b/docs/@trust0/ridb-level/classes/LevelDBStorage.md
@@ -6,7 +6,7 @@
# Class: LevelDBStorage\
-Defined in: [index.ts:47](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb-level/src/index.ts#L47)
+Defined in: [index.ts:47](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb-level/src/index.ts#L47)
LevelDB storage implementation class
@@ -26,7 +26,7 @@ LevelDB storage implementation class
> **new LevelDBStorage**\<`T`\>(`level`, `name`, `schemas`, `options`): `LevelDBStorage`\<`T`\>
-Defined in: [index.ts:48](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb-level/src/index.ts#L48)
+Defined in: [index.ts:48](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb-level/src/index.ts#L48)
#### Parameters
@@ -60,7 +60,7 @@ Defined in: [index.ts:48](https://github.com/trust0-project/RIDB/blob/b267d58174
> `readonly` **core**: `CoreStorage`
-Defined in: ../../ridb-core/build/ridb\_core.d.ts:361
+Defined in: ../../ridb-core/build/ridb\_core.d.ts:589
#### Inherited from
@@ -72,7 +72,7 @@ Defined in: ../../ridb-core/build/ridb\_core.d.ts:361
> `readonly` **dbName**: `string`
-Defined in: ../../ridb-core/build/ridb\_core.d.ts:358
+Defined in: ../../ridb-core/build/ridb\_core.d.ts:586
#### Inherited from
@@ -84,7 +84,7 @@ Defined in: ../../ridb-core/build/ridb\_core.d.ts:358
> **level**: [`Level`](../type-aliases/Level.md)
-Defined in: [index.ts:48](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb-level/src/index.ts#L48)
+Defined in: [index.ts:48](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb-level/src/index.ts#L48)
***
@@ -92,7 +92,7 @@ Defined in: [index.ts:48](https://github.com/trust0-project/RIDB/blob/b267d58174
> `readonly` **options**: `BaseStorageOptions`
-Defined in: ../../ridb-core/build/ridb\_core.d.ts:360
+Defined in: ../../ridb-core/build/ridb\_core.d.ts:588
#### Inherited from
@@ -104,7 +104,7 @@ Defined in: ../../ridb-core/build/ridb\_core.d.ts:360
> `readonly` **schemas**: `Record`\\>
-Defined in: ../../ridb-core/build/ridb\_core.d.ts:359
+Defined in: ../../ridb-core/build/ridb\_core.d.ts:587
#### Inherited from
@@ -116,7 +116,7 @@ Defined in: ../../ridb-core/build/ridb\_core.d.ts:359
> **addIndexSchemas**(): `null`
-Defined in: ../../ridb-core/build/ridb\_core.d.ts:371
+Defined in: ../../ridb-core/build/ridb\_core.d.ts:599
#### Returns
@@ -132,7 +132,7 @@ Defined in: ../../ridb-core/build/ridb\_core.d.ts:371
> **close**(): `Promise`\<`void`\>
-Defined in: [index.ts:77](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb-level/src/index.ts#L77)
+Defined in: [index.ts:77](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb-level/src/index.ts#L77)
Close the database
@@ -150,7 +150,7 @@ Close the database
> **count**(`collectionName`, `query`, `options?`): `Promise`\<`number`\>
-Defined in: [index.ts:148](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb-level/src/index.ts#L148)
+Defined in: [index.ts:148](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb-level/src/index.ts#L148)
Count documents matching a query (supports offset & limit)
@@ -182,7 +182,7 @@ keyof `T`
> **find**(`collectionName`, `query`, `options?`): `Promise`\<`Doc`\<`T`\[keyof `T`\]\>[]\>
-Defined in: [index.ts:197](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb-level/src/index.ts#L197)
+Defined in: [index.ts:197](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb-level/src/index.ts#L197)
Find documents matching a query with pagination
@@ -214,7 +214,7 @@ keyof `T`
> **findDocumentById**(`collectionName`, `id`): `Promise`\<`null` \| `Doc`\<`T`\[keyof `T`\]\>\>
-Defined in: [index.ts:82](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb-level/src/index.ts#L82)
+Defined in: [index.ts:82](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb-level/src/index.ts#L82)
Find a document by its ID
@@ -242,7 +242,7 @@ keyof `T`
> **getOption**(`name`): `undefined` \| `string` \| `number` \| `boolean`
-Defined in: ../../ridb-core/build/ridb\_core.d.ts:368
+Defined in: ../../ridb-core/build/ridb\_core.d.ts:596
#### Parameters
@@ -264,7 +264,7 @@ Defined in: ../../ridb-core/build/ridb\_core.d.ts:368
> **getSchema**(`name`): `Schema`\<`any`\>
-Defined in: ../../ridb-core/build/ridb\_core.d.ts:369
+Defined in: ../../ridb-core/build/ridb\_core.d.ts:597
#### Parameters
@@ -286,7 +286,7 @@ Defined in: ../../ridb-core/build/ridb\_core.d.ts:369
> **start**(): `Promise`\<`void`\>
-Defined in: [index.ts:72](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb-level/src/index.ts#L72)
+Defined in: [index.ts:72](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb-level/src/index.ts#L72)
Start the database
@@ -304,7 +304,7 @@ Start the database
> **write**(`op`): `Promise`\<`Doc`\<`T`\[keyof `T`\]\>\>
-Defined in: [index.ts:104](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb-level/src/index.ts#L104)
+Defined in: [index.ts:104](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb-level/src/index.ts#L104)
Write an operation (insert, update, delete)
@@ -328,7 +328,7 @@ Write an operation (insert, update, delete)
> `static` **create**\<`SchemasCreate`\>(`name`, `schemas`, `options?`): `Promise`\<`LevelDBStorage`\<`SchemasCreate`\>\>
-Defined in: [index.ts:60](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb-level/src/index.ts#L60)
+Defined in: [index.ts:60](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb-level/src/index.ts#L60)
Create a new LevelDB storage instance
diff --git a/docs/@trust0/ridb-level/functions/createLevelDB.md b/docs/@trust0/ridb-level/functions/createLevelDB.md
index 378badda..1db9bbbd 100644
--- a/docs/@trust0/ridb-level/functions/createLevelDB.md
+++ b/docs/@trust0/ridb-level/functions/createLevelDB.md
@@ -8,7 +8,7 @@
> **createLevelDB**\<`T`\>(): `Promise`\<*typeof* [`BaseStorage`](https://github.com/trust0-project/RIDB/blob/main/docs/%40trust0/ridb-core/classes/BaseStorage.md)\>
-Defined in: [index.ts:250](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb-level/src/index.ts#L250)
+Defined in: [index.ts:250](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb-level/src/index.ts#L250)
Create a LevelDB storage instance
diff --git a/docs/@trust0/ridb-level/type-aliases/Level.md b/docs/@trust0/ridb-level/type-aliases/Level.md
index c482f1e3..3e6b0cd3 100644
--- a/docs/@trust0/ridb-level/type-aliases/Level.md
+++ b/docs/@trust0/ridb-level/type-aliases/Level.md
@@ -8,4 +8,4 @@
> **Level** = `ClassicLevel`\<`string`, `string`\>
-Defined in: [index.ts:41](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb-level/src/index.ts#L41)
+Defined in: [index.ts:41](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb-level/src/index.ts#L41)
diff --git a/docs/@trust0/ridb-react/functions/RIDBDatabase.md b/docs/@trust0/ridb-react/functions/RIDBDatabase.md
index 26e597e3..76dbb536 100644
--- a/docs/@trust0/ridb-react/functions/RIDBDatabase.md
+++ b/docs/@trust0/ridb-react/functions/RIDBDatabase.md
@@ -8,7 +8,7 @@
> **RIDBDatabase**\<`T`\>(`__namedParameters`): `Element`
-Defined in: [index.tsx:25](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb-react/src/index.tsx#L25)
+Defined in: [index.tsx:25](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb-react/src/index.tsx#L25)
## Type Parameters
diff --git a/docs/@trust0/ridb-react/functions/useRIDB.md b/docs/@trust0/ridb-react/functions/useRIDB.md
index c0ca470e..23aebe2e 100644
--- a/docs/@trust0/ridb-react/functions/useRIDB.md
+++ b/docs/@trust0/ridb-react/functions/useRIDB.md
@@ -8,7 +8,7 @@
> **useRIDB**\<`T`\>(): `object`
-Defined in: [index.tsx:17](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb-react/src/index.tsx#L17)
+Defined in: [index.tsx:17](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb-react/src/index.tsx#L17)
## Type Parameters
diff --git a/docs/@trust0/ridb-react/type-aliases/DatabaseState.md b/docs/@trust0/ridb-react/type-aliases/DatabaseState.md
index 7e0b3a98..892ad32b 100644
--- a/docs/@trust0/ridb-react/type-aliases/DatabaseState.md
+++ b/docs/@trust0/ridb-react/type-aliases/DatabaseState.md
@@ -8,4 +8,4 @@
> **DatabaseState** = `"disconnected"` \| `"loading"` \| `"loaded"` \| `"error"`
-Defined in: [index.tsx:5](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb-react/src/index.tsx#L5)
+Defined in: [index.tsx:5](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb-react/src/index.tsx#L5)
diff --git a/docs/@trust0/ridb-react/variables/RIDBContext.md b/docs/@trust0/ridb-react/variables/RIDBContext.md
index 95afb72d..57e70b82 100644
--- a/docs/@trust0/ridb-react/variables/RIDBContext.md
+++ b/docs/@trust0/ridb-react/variables/RIDBContext.md
@@ -8,4 +8,4 @@
> `const` **RIDBContext**: `Context`\<`Context`\<`any`\>\>
-Defined in: [index.tsx:15](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb-react/src/index.tsx#L15)
+Defined in: [index.tsx:15](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb-react/src/index.tsx#L15)
diff --git a/docs/@trust0/ridb/classes/RIDB.md b/docs/@trust0/ridb/classes/RIDB.md
index f1f0e6cd..e4725add 100644
--- a/docs/@trust0/ridb/classes/RIDB.md
+++ b/docs/@trust0/ridb/classes/RIDB.md
@@ -6,7 +6,7 @@
# Class: RIDB\
-Defined in: [index.ts:160](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/index.ts#L160)
+Defined in: [index.ts:160](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/index.ts#L160)
Main RIDB class that provides database functionality with optional worker support.
@@ -27,7 +27,7 @@ Schema type record defining the database schema structure
> **new RIDB**\<`T`\>(`options`): `RIDB`\<`T`\>
-Defined in: [index.ts:184](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/index.ts#L184)
+Defined in: [index.ts:184](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/index.ts#L184)
Creates a new RIDB instance.
@@ -69,7 +69,7 @@ const db = new RIDB({
> **get** **collections**(): \{ \[name in string \| number \| symbol\]: Collection\\> \}
-Defined in: [index.ts:201](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/index.ts#L201)
+Defined in: [index.ts:201](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/index.ts#L201)
Access the database collections.
@@ -97,7 +97,7 @@ An object containing all collections defined in the schema
> **get** **started**(): `boolean`
-Defined in: [index.ts:258](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/index.ts#L258)
+Defined in: [index.ts:258](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/index.ts#L258)
Checks if the database has been successfully started.
@@ -125,7 +125,7 @@ True if the database is started, false otherwise
> **close**(): `Promise`\<`void`\>
-Defined in: [index.ts:239](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/index.ts#L239)
+Defined in: [index.ts:239](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/index.ts#L239)
Closes the database connection and releases resources.
@@ -148,7 +148,7 @@ await db.close();
> **start**(`options?`): `Promise`\<`void`\>
-Defined in: [index.ts:225](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/index.ts#L225)
+Defined in: [index.ts:225](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/index.ts#L225)
Starts the database and initializes all collections.
diff --git a/docs/@trust0/ridb/enumerations/StorageType.md b/docs/@trust0/ridb/enumerations/StorageType.md
index b512197f..7145519f 100644
--- a/docs/@trust0/ridb/enumerations/StorageType.md
+++ b/docs/@trust0/ridb/enumerations/StorageType.md
@@ -6,7 +6,7 @@
# Enumeration: StorageType
-Defined in: [types.ts:27](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/types.ts#L27)
+Defined in: [types.ts:27](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/types.ts#L27)
Enumeration of built-in storage types supported by RIDB.
@@ -16,7 +16,7 @@ Enumeration of built-in storage types supported by RIDB.
> **IndexDB**: `"IndexDB"`
-Defined in: [types.ts:36](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/types.ts#L36)
+Defined in: [types.ts:36](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/types.ts#L36)
IndexedDB-based storage for persistent data in the browser
@@ -26,6 +26,6 @@ IndexedDB-based storage for persistent data in the browser
> **InMemory**: `"InMemory"`
-Defined in: [types.ts:31](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/types.ts#L31)
+Defined in: [types.ts:31](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/types.ts#L31)
In-memory storage that doesn't persist data across page reloads
diff --git a/docs/@trust0/ridb/functions/WasmInternal.md b/docs/@trust0/ridb/functions/WasmInternal.md
index 3a497790..b15a118c 100644
--- a/docs/@trust0/ridb/functions/WasmInternal.md
+++ b/docs/@trust0/ridb/functions/WasmInternal.md
@@ -8,7 +8,7 @@
> **WasmInternal**(): `Promise`\<`__module`\>
-Defined in: [wasm.ts:6](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/wasm.ts#L6)
+Defined in: [wasm.ts:6](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/wasm.ts#L6)
## Returns
diff --git a/docs/@trust0/ridb/interfaces/RIDBAbstract.md b/docs/@trust0/ridb/interfaces/RIDBAbstract.md
index bbd238cc..06b0bf80 100644
--- a/docs/@trust0/ridb/interfaces/RIDBAbstract.md
+++ b/docs/@trust0/ridb/interfaces/RIDBAbstract.md
@@ -6,7 +6,7 @@
# Interface: RIDBAbstract\
-Defined in: [types.ts:112](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/types.ts#L112)
+Defined in: [types.ts:112](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/types.ts#L112)
Abstract interface for RIDB implementations.
@@ -26,7 +26,7 @@ The schema type record defining the database structure
> **close**(): `Promise`\<`void`\>
-Defined in: [types.ts:126](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/types.ts#L126)
+Defined in: [types.ts:126](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/types.ts#L126)
Close the database connection.
@@ -42,7 +42,7 @@ A promise that resolves when the database has been successfully closed
> **getCollections**(): \{ \[name in string \| number \| symbol\]: Collection\\> \}
-Defined in: [types.ts:133](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/types.ts#L133)
+Defined in: [types.ts:133](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/types.ts#L133)
Get the collections for this database.
@@ -58,7 +58,7 @@ An object containing all collections defined in the schema
> **isStarted**(): `boolean`
-Defined in: [types.ts:140](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/types.ts#L140)
+Defined in: [types.ts:140](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/types.ts#L140)
Check if the database has been started.
@@ -74,7 +74,7 @@ True if the database is started, false otherwise
> **start**(`options?`): `Promise`\<`void`\>
-Defined in: [types.ts:119](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/types.ts#L119)
+Defined in: [types.ts:119](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/types.ts#L119)
Start the database with the given options.
diff --git a/docs/@trust0/ridb/interfaces/WorkerInstance.md b/docs/@trust0/ridb/interfaces/WorkerInstance.md
index 7d974ca1..0db5b895 100644
--- a/docs/@trust0/ridb/interfaces/WorkerInstance.md
+++ b/docs/@trust0/ridb/interfaces/WorkerInstance.md
@@ -6,7 +6,7 @@
# Interface: WorkerInstance
-Defined in: [types.ts:146](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/types.ts#L146)
+Defined in: [types.ts:146](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/types.ts#L146)
Interface representing a shared worker instance and its session ID.
@@ -16,7 +16,7 @@ Interface representing a shared worker instance and its session ID.
> **sessionId**: `string`
-Defined in: [types.ts:155](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/types.ts#L155)
+Defined in: [types.ts:155](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/types.ts#L155)
Unique session ID for this worker connection
@@ -26,6 +26,6 @@ Unique session ID for this worker connection
> **worker**: `SharedWorker`
-Defined in: [types.ts:150](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/types.ts#L150)
+Defined in: [types.ts:150](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/types.ts#L150)
The SharedWorker instance
diff --git a/docs/@trust0/ridb/type-aliases/DBOptions.md b/docs/@trust0/ridb/type-aliases/DBOptions.md
index 0f4a3772..0b36bf0a 100644
--- a/docs/@trust0/ridb/type-aliases/DBOptions.md
+++ b/docs/@trust0/ridb/type-aliases/DBOptions.md
@@ -8,7 +8,7 @@
> **DBOptions**\<`T`\> = `object` & [`MigrationsParameter`](https://github.com/trust0-project/RIDB/blob/main/docs/%40trust0/ridb-core/type-aliases/MigrationsParameter.md)\<`T`\>
-Defined in: [types.ts:71](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/types.ts#L71)
+Defined in: [types.ts:71](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/types.ts#L71)
Options for initializing the RIDB database.
diff --git a/docs/@trust0/ridb/type-aliases/PendingRequests.md b/docs/@trust0/ridb/type-aliases/PendingRequests.md
index 95578aec..0b2329db 100644
--- a/docs/@trust0/ridb/type-aliases/PendingRequests.md
+++ b/docs/@trust0/ridb/type-aliases/PendingRequests.md
@@ -8,6 +8,6 @@
> **PendingRequests** = `Map`\<`string`, \{ `reject`: (`err`) => `void`; `resolve`: (`resp`) => `void`; \}\>
-Defined in: [types.ts:99](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/types.ts#L99)
+Defined in: [types.ts:99](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/types.ts#L99)
Map of pending requests used for worker communication.
diff --git a/docs/@trust0/ridb/type-aliases/StartOptions.md b/docs/@trust0/ridb/type-aliases/StartOptions.md
index 6e7bc53d..0a2d5caa 100644
--- a/docs/@trust0/ridb/type-aliases/StartOptions.md
+++ b/docs/@trust0/ridb/type-aliases/StartOptions.md
@@ -8,7 +8,7 @@
> **StartOptions**\<`T`\> = `object`
-Defined in: [types.ts:44](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/types.ts#L44)
+Defined in: [types.ts:44](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/types.ts#L44)
Options for starting a database instance.
@@ -32,7 +32,7 @@ Additional custom options
> `optional` **dbName**: `string`
-Defined in: [types.ts:58](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/types.ts#L58)
+Defined in: [types.ts:58](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/types.ts#L58)
Database name to use (overrides the name provided during initialization)
@@ -42,7 +42,7 @@ Database name to use (overrides the name provided during initialization)
> `optional` **password**: `string`
-Defined in: [types.ts:53](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/types.ts#L53)
+Defined in: [types.ts:53](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/types.ts#L53)
Optional password for encrypting the database
@@ -52,6 +52,6 @@ Optional password for encrypting the database
> `optional` **storageType**: [`StorageClass`](StorageClass.md)\<`T`\> \| [`StorageType`](../enumerations/StorageType.md)
-Defined in: [types.ts:48](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/types.ts#L48)
+Defined in: [types.ts:48](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/types.ts#L48)
The storage type or custom storage class implementation to use
diff --git a/docs/@trust0/ridb/type-aliases/StorageClass.md b/docs/@trust0/ridb/type-aliases/StorageClass.md
index 830ee3e7..13d75563 100644
--- a/docs/@trust0/ridb/type-aliases/StorageClass.md
+++ b/docs/@trust0/ridb/type-aliases/StorageClass.md
@@ -8,7 +8,7 @@
> **StorageClass**\<`T`\> = `object`
-Defined in: [types.ts:8](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/types.ts#L8)
+Defined in: [types.ts:8](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/types.ts#L8)
Represents a factory class for creating storage instances.
@@ -26,7 +26,7 @@ The schema type record defining the database structure
> **create**: (`name`, `schemas`, `options`) => `Promise`\<[`BaseStorage`](https://github.com/trust0-project/RIDB/blob/main/docs/%40trust0/ridb-core/classes/BaseStorage.md)\<`T`\>\>
-Defined in: [types.ts:17](https://github.com/trust0-project/RIDB/blob/b267d581748a68c847ca97ed463e3d471b6e67d7/packages/ridb/src/types.ts#L17)
+Defined in: [types.ts:17](https://github.com/trust0-project/RIDB/blob/89dbd9f9380a1091a79cb83771ff6129cbcebbdf/packages/ridb/src/types.ts#L17)
Creates a storage instance with the specified parameters.
diff --git a/packages/ridb-core/CHANGELOG.md b/packages/ridb-core/CHANGELOG.md
index d36be8c0..d2db0eaa 100644
--- a/packages/ridb-core/CHANGELOG.md
+++ b/packages/ridb-core/CHANGELOG.md
@@ -1,3 +1,15 @@
+## 1.7.27 (2025-07-08)
+
+### 🩹 Fixes
+
+- improve code ([eebd952](https://github.com/trust0-project/RIDB/commit/eebd952))
+- improve cursor_fetch_and_filter for better performance too ([6b075cb](https://github.com/trust0-project/RIDB/commit/6b075cb))
+- warning improvement ([44acad1](https://github.com/trust0-project/RIDB/commit/44acad1))
+
+### ❤️ Thank You
+
+- Javier Ribó
+
## 1.7.26 (2025-07-08)
### 🩹 Fixes
diff --git a/packages/ridb-core/README.md b/packages/ridb-core/README.md
index 16153aee..b72b755f 100644
--- a/packages/ridb-core/README.md
+++ b/packages/ridb-core/README.md
@@ -1,5 +1,5 @@
-
+
A secure light-weight and dependency free database wrapper for the web.
diff --git a/packages/ridb-core/package.json b/packages/ridb-core/package.json
index 45f0c18a..1e76fd88 100644
--- a/packages/ridb-core/package.json
+++ b/packages/ridb-core/package.json
@@ -4,7 +4,7 @@
"publishConfig": {
"access": "public"
},
- "version": "1.7.26",
+ "version": "1.7.27",
"main": "./build/ridb_core.js",
"module": "./build/ridb_core.mjs",
"types": "./build/ridb_core.d.ts",
diff --git a/packages/ridb-core/src/storages/indexdb/mod.rs b/packages/ridb-core/src/storages/indexdb/mod.rs
index 0c754f5a..abb80b98 100644
--- a/packages/ridb-core/src/storages/indexdb/mod.rs
+++ b/packages/ridb-core/src/storages/indexdb/mod.rs
@@ -1,8 +1,8 @@
-use js_sys::{Array, Object, Promise, Reflect};
+use js_sys::{Array, Object, Reflect};
use pool::POOL;
use utils::{can_use_single_index_lookup, create_database, cursor_fetch_and_filter, idb_request_result};
use crate::utils::Logger;
-use wasm_bindgen::{JsCast, JsValue};
+use wasm_bindgen::JsValue;
use wasm_bindgen::prelude::{wasm_bindgen, Closure};
use crate::query::Query;
use crate::storage::internals::base_storage::BaseStorage;
@@ -474,21 +474,9 @@ impl IndexDB {
}
};
- // Set up abort and complete handlers to improve transaction management
- Logger::debug("IndexDB-GetStore", &JsValue::from_str("Setting up transaction complete handler"));
- let complete_promise = Promise::new(&mut |resolve, _| {
- let oncomplete = Closure::once(Box::new(move |_: web_sys::Event| {
- resolve.call0(&JsValue::undefined()).unwrap();
- }));
-
- transaction.set_oncomplete(Some(oncomplete.as_ref().unchecked_ref()));
- oncomplete.forget();
- });
-
- // Create a future from the promise, but don't await it
- // This ensures we track the transaction but don't block
- Logger::debug("IndexDB-GetStore", &JsValue::from_str("Creating future from transaction complete promise"));
- let _future = wasm_bindgen_futures::JsFuture::from(complete_promise);
+ // Simplified transaction handling - no need for complex promise setup
+ // The transaction will complete automatically when the object store operations are done
+ Logger::debug("IndexDB-GetStore", &JsValue::from_str("Transaction created, proceeding with object store access"));
// Get object store from transaction
Logger::debug("IndexDB-GetStore", &JsValue::from_str(&format!("Getting object store: {}", store_name)));
diff --git a/packages/ridb-core/src/storages/indexdb/utils.rs b/packages/ridb-core/src/storages/indexdb/utils.rs
index d850d8fa..968f5eff 100644
--- a/packages/ridb-core/src/storages/indexdb/utils.rs
+++ b/packages/ridb-core/src/storages/indexdb/utils.rs
@@ -22,32 +22,31 @@ pub async fn cursor_fetch_and_filter(
limit: u32,
) -> Result {
use std::cell::RefCell;
-
- let result_array = RefCell::new(Array::new());
- let skipped_count = RefCell::new(0u32);
- let matched_count = RefCell::new(0u32);
+ use std::rc::Rc;
+
+ // Use Rc> for shared state between closures
+ let all_docs = Rc::new(RefCell::new(Vec::new()));
+ let cursor_finished = Rc::new(RefCell::new(false));
+ let matched_count = Rc::new(RefCell::new(0u32));
+ let skipped_count = Rc::new(RefCell::new(0u32));
+ let processing_scheduled = Rc::new(RefCell::new(false));
- // Pre-evaluate query components if possible to avoid repeated work in callback
+ // Clone these for the async processing
let core_cloned = core.clone();
let value_query_cloned = value_query.clone();
- // Limit the frequency of processing - batch process documents
- const BATCH_SIZE: u32 = 50; // Process documents in batches
- let batch_docs = RefCell::new(Vec::with_capacity(BATCH_SIZE as usize));
-
let promise = Promise::new(&mut |resolve, reject| {
- // Create references to the arrays and counters
- let result_array_ref = result_array.clone();
- let skipped_count_ref = skipped_count.clone();
+ let all_docs_ref = all_docs.clone();
+ let cursor_finished_ref = cursor_finished.clone();
let matched_count_ref = matched_count.clone();
- let value_query_ref = value_query_cloned.clone();
- let batch_docs_ref = batch_docs.clone();
-
- // References to resolver/rejecter
+ let skipped_count_ref = skipped_count.clone();
+ let processing_scheduled_ref = processing_scheduled.clone();
let resolve_ref = resolve.clone();
let reject_ref = reject.clone();
+ let value_query_for_closure = value_query_cloned.clone();
+ let core_for_closure = core_cloned.clone();
- // Create closures with owned values
+ // Create a lightweight success handler that collects documents with early termination
let on_success = Closure::wrap(Box::new(move |evt: web_sys::Event| {
let target: web_sys::IdbRequest = match evt.target().and_then(|t| t.dyn_into().ok()) {
Some(req) => req,
@@ -62,28 +61,26 @@ pub async fn cursor_fetch_and_filter(
let cursor_value = target.result();
- // If cursor is done, process any remaining batch and return result
+ // If cursor is done, start async processing
if cursor_value.is_err()
|| cursor_value.as_ref().unwrap().is_null()
|| cursor_value.as_ref().unwrap().is_undefined()
{
- // Process any remaining documents in the batch
- let mut batch = batch_docs_ref.borrow_mut();
- if !batch.is_empty() {
- process_batch(
- &mut batch,
- &core_cloned,
- &value_query_ref,
- &result_array_ref,
- &skipped_count_ref,
- &matched_count_ref,
+ *cursor_finished_ref.borrow_mut() = true;
+ // Only schedule async processing if it hasn't been scheduled yet
+ if !*processing_scheduled_ref.borrow() {
+ *processing_scheduled_ref.borrow_mut() = true;
+ // Defer the heavy processing to avoid blocking the success handler
+ schedule_async_processing(
+ all_docs_ref.clone(),
+ core_for_closure.clone(),
+ value_query_for_closure.clone(),
offset,
- limit
+ limit,
+ resolve_ref.clone(),
+ reject_ref.clone(),
);
}
-
- // Cursor finished: resolve with the final array
- let _ = resolve_ref.call1(&JsValue::NULL, &result_array_ref.borrow());
return;
}
@@ -98,30 +95,58 @@ pub async fn cursor_fetch_and_filter(
}
};
- // Get the document value
+ // Check if we've already collected enough documents
+ let current_matched = *matched_count_ref.borrow();
+ if current_matched >= limit {
+ // We have enough matches, stop cursor iteration
+ *cursor_finished_ref.borrow_mut() = true;
+ // Only schedule async processing if it hasn't been scheduled yet
+ if !*processing_scheduled_ref.borrow() {
+ *processing_scheduled_ref.borrow_mut() = true;
+ schedule_async_processing(
+ all_docs_ref.clone(),
+ core_for_closure.clone(),
+ value_query_for_closure.clone(),
+ offset,
+ limit,
+ resolve_ref.clone(),
+ reject_ref.clone(),
+ );
+ }
+ return;
+ }
+
+ // Lightweight work: collect the document with early termination logic
match cursor.value() {
Ok(doc) => {
- // Add document to batch for processing
- let mut batch = batch_docs_ref.borrow_mut();
- batch.push(doc);
-
- // If batch is full or we've reached the limit, process it
- let matched = *matched_count_ref.borrow();
- if batch.len() >= BATCH_SIZE as usize || matched >= limit {
- process_batch(
- &mut batch,
- &core_cloned,
- &value_query_ref,
- &result_array_ref,
- &skipped_count_ref,
- &matched_count_ref,
- offset,
- limit
- );
+ // Quick check for query match to enable early termination
+ if core_for_closure.document_matches_query(&doc, value_query_for_closure.clone()).unwrap_or(false) {
+ let mut skipped = skipped_count_ref.borrow_mut();
+ let mut matched = matched_count_ref.borrow_mut();
+
+ if *skipped < offset {
+ *skipped += 1;
+ } else if *matched < limit {
+ all_docs_ref.borrow_mut().push(doc);
+ *matched += 1;
+ }
- // If we have enough matches, resolve immediately
- if *matched_count_ref.borrow() >= limit {
- let _ = resolve_ref.call1(&JsValue::NULL, &result_array_ref.borrow());
+ // If we've reached the limit, stop processing
+ if *matched >= limit {
+ *cursor_finished_ref.borrow_mut() = true;
+ // Only schedule async processing if it hasn't been scheduled yet
+ if !*processing_scheduled_ref.borrow() {
+ *processing_scheduled_ref.borrow_mut() = true;
+ schedule_async_processing(
+ all_docs_ref.clone(),
+ core_for_closure.clone(),
+ value_query_for_closure.clone(),
+ offset,
+ limit,
+ resolve_ref.clone(),
+ reject_ref.clone(),
+ );
+ }
return;
}
}
@@ -137,13 +162,12 @@ pub async fn cursor_fetch_and_filter(
}
}) as Box);
- // Create another reject_ref for the error handler
let reject_err = reject.clone();
let on_error = Closure::wrap(Box::new(move |evt: web_sys::Event| {
let _ = reject_err.call1(&JsValue::NULL, &evt);
}) as Box);
- // Decide how to open the cursor
+ // Open cursor logic remains the same
let request_result = if let Some(idx) = index {
if !key_value.is_null() && !key_value.is_undefined() {
match IdbKeyRange::only(key_value) {
@@ -166,13 +190,11 @@ pub async fn cursor_fetch_and_filter(
Err(JsValue::from_str("No index or store provided to open cursor."))
};
- // Attach success/error closures to the request
match request_result {
Ok(request) => {
request.set_onsuccess(Some(on_success.as_ref().unchecked_ref()));
request.set_onerror(Some(on_error.as_ref().unchecked_ref()));
- // Keep the closures alive for multiple invocations
on_success.forget();
on_error.forget();
}
@@ -182,80 +204,129 @@ pub async fn cursor_fetch_and_filter(
}
});
- // Await the promise, then convert the result to an Array
let js_result = wasm_bindgen_futures::JsFuture::from(promise).await?;
Ok(Array::from(&js_result))
}
-// Separate function to process a batch of documents - this improves performance
-// by reducing the amount of work done in the success handler
-fn process_batch(
- batch: &mut Vec,
- core: &CoreStorage,
- query: &Query,
- result_array: &std::cell::RefCell,
- skipped_count: &std::cell::RefCell,
- matched_count: &std::cell::RefCell,
+// Schedule async processing using setTimeout to avoid blocking the event loop
+// Fixed to work in both Window and Worker contexts
+fn schedule_async_processing(
+ all_docs: std::rc::Rc>>,
+ core: CoreStorage,
+ query: Query,
offset: u32,
- limit: u32
+ limit: u32,
+ resolve: js_sys::Function,
+ reject: js_sys::Function,
) {
- // Early return if we already have enough matches
- if *matched_count.borrow() >= limit {
- batch.clear();
- return;
- }
-
- // Process all documents in the batch
- for doc in batch.drain(..) {
- // Only bother with filtering if we haven't hit the limit
- if *matched_count.borrow() < limit {
- if core.document_matches_query(&doc, query.clone()).unwrap_or(false) {
- let mut skip_ref = skipped_count.borrow_mut();
- let mut match_ref = matched_count.borrow_mut();
-
- if *skip_ref < offset {
- *skip_ref += 1;
- } else if *match_ref < limit {
- result_array.borrow().push(&doc);
- *match_ref += 1;
- }
+ let timeout_callback = Closure::once(Box::new(move || {
+ match process_documents_async(all_docs, core, query, offset, limit) {
+ Ok(result) => {
+ let _ = resolve.call1(&JsValue::NULL, &result);
+ }
+ Err(e) => {
+ let _ = reject.call1(&JsValue::NULL, &e);
}
- } else {
- // If we've hit the limit, stop processing
- break;
}
+ }));
+
+ // Use setTimeout in both Window and Worker contexts
+ if let Ok(window) = js_sys::global().dyn_into::() {
+ // Window context
+ let _ = window.set_timeout_with_callback_and_timeout_and_arguments_0(
+ timeout_callback.as_ref().unchecked_ref(),
+ 0, // Next tick
+ );
+ } else if let Ok(worker) = js_sys::global().dyn_into::() {
+ // Worker context
+ let _ = worker.set_timeout_with_callback_and_timeout_and_arguments_0(
+ timeout_callback.as_ref().unchecked_ref(),
+ 0, // Next tick
+ );
+ } else {
+ // Fallback: execute immediately if neither context is available
+ // This shouldn't happen in normal web environments, but provides a safety net
+ let callback_fn = timeout_callback.as_ref().unchecked_ref::();
+ let _ = callback_fn.call0(&JsValue::undefined());
}
+
+ timeout_callback.forget();
+}
+
+// Process documents asynchronously - now mainly for final array construction
+// since filtering and limits are already applied during cursor iteration
+fn process_documents_async(
+ all_docs: std::rc::Rc>>,
+ _core: CoreStorage,
+ _query: Query,
+ _offset: u32,
+ _limit: u32,
+) -> Result {
+ let docs = all_docs.borrow();
+ let result_array = Array::new();
+
+ // Since filtering and limits are already applied during cursor iteration,
+ // we just need to convert the collected documents to an Array
+ for doc in docs.iter() {
+ result_array.push(doc);
+ }
+
+ Ok(result_array)
}
pub async fn idb_request_result(request: IdbRequest) -> Result {
let promise = Promise::new(&mut |resolve, reject| {
let reject2 = reject.clone();
+
+ // Ultra-lightweight success handler that just resolves immediately
let success_callback = Closure::once(Box::new(move |event: web_sys::Event| {
- let request: IdbRequest = event.target()
- .unwrap()
- .dyn_into()
- .unwrap();
-
- match request.result() {
- Ok(result) => resolve.call1(&JsValue::undefined(), &result).unwrap(),
- Err(e) => reject.call1(&JsValue::undefined(), &e).unwrap(),
+ // Minimize work in success handler - just get the target and resolve
+ if let Some(target) = event.target() {
+ if let Ok(request) = target.dyn_into::() {
+ // Get result and resolve immediately without additional processing
+ match request.result() {
+ Ok(result) => {
+ let _ = resolve.call1(&JsValue::undefined(), &result);
+ }
+ Err(e) => {
+ let _ = reject.call1(&JsValue::undefined(), &e);
+ }
+ }
+ } else {
+ let _ = reject.call1(&JsValue::undefined(), &JsValue::from_str("Invalid request target"));
+ }
+ } else {
+ let _ = reject.call1(&JsValue::undefined(), &JsValue::from_str("No event target"));
}
}));
+ // Ultra-lightweight error handler
let error_callback = Closure::once(Box::new(move |event: web_sys::Event| {
- let request: IdbRequest = event.target()
- .unwrap()
- .dyn_into()
- .unwrap();
-
- let error = request.error().unwrap();
- reject2.call1(&JsValue::undefined(), &error.unwrap()).unwrap();
+ if let Some(target) = event.target() {
+ if let Ok(request) = target.dyn_into::() {
+ // Get error and reject immediately
+ match request.error() {
+ Ok(Some(error)) => {
+ let _ = reject2.call1(&JsValue::undefined(), &error);
+ }
+ Ok(None) => {
+ let _ = reject2.call1(&JsValue::undefined(), &JsValue::from_str("Unknown error"));
+ }
+ Err(e) => {
+ let _ = reject2.call1(&JsValue::undefined(), &e);
+ }
+ }
+ } else {
+ let _ = reject2.call1(&JsValue::undefined(), &JsValue::from_str("Invalid request target"));
+ }
+ } else {
+ let _ = reject2.call1(&JsValue::undefined(), &JsValue::from_str("No event target"));
+ }
}));
request.set_onsuccess(Some(success_callback.as_ref().unchecked_ref()));
request.set_onerror(Some(error_callback.as_ref().unchecked_ref()));
- // The closures will automatically be dropped after the Promise resolves/rejects
success_callback.forget();
error_callback.forget();
});
diff --git a/packages/ridb-level/CHANGELOG.md b/packages/ridb-level/CHANGELOG.md
index 9fea1311..eaafca4a 100644
--- a/packages/ridb-level/CHANGELOG.md
+++ b/packages/ridb-level/CHANGELOG.md
@@ -1,3 +1,9 @@
+## 1.2.32 (2025-07-08)
+
+### 🧱 Updated Dependencies
+
+- Updated @trust0/ridb to 1.5.32
+
## 1.2.31 (2025-07-08)
### 🩹 Fixes
diff --git a/packages/ridb-level/README.md b/packages/ridb-level/README.md
index bb1bf444..8e1d8d29 100644
--- a/packages/ridb-level/README.md
+++ b/packages/ridb-level/README.md
@@ -1,5 +1,5 @@
-
+
A secure light-weight and dependency free database wrapper for the web.
diff --git a/packages/ridb-level/package.json b/packages/ridb-level/package.json
index 5e965eb4..ebe0d335 100644
--- a/packages/ridb-level/package.json
+++ b/packages/ridb-level/package.json
@@ -1,6 +1,6 @@
{
"name": "@trust0/ridb-level",
- "version": "1.2.31",
+ "version": "1.2.32",
"description": "Level DB storage for @trust0/ridb.",
"main": "./build/index.js",
"module": "./build/index.mjs",
@@ -33,7 +33,7 @@
"types:default": "npx tsc"
},
"devDependencies": {
- "@trust0/ridb": "^1.5.31",
+ "@trust0/ridb": "^1.5.32",
"@trust0/ridb-build": "^0.0.16",
"classic-level": "^2.0.0",
"jsdom": "^24.1.3",
diff --git a/packages/ridb-level/src/index.ts b/packages/ridb-level/src/index.ts
index 97caa8b4..0ec3adf5 100644
--- a/packages/ridb-level/src/index.ts
+++ b/packages/ridb-level/src/index.ts
@@ -2,7 +2,7 @@
* @packageDocumentation
*
*
- *
+ *
*
*
*
A secure light-weight and dependency free database wrapper for the web.
diff --git a/packages/ridb-react/CHANGELOG.md b/packages/ridb-react/CHANGELOG.md
index c9dd637b..27ffec4b 100644
--- a/packages/ridb-react/CHANGELOG.md
+++ b/packages/ridb-react/CHANGELOG.md
@@ -1,3 +1,9 @@
+## 1.4.11 (2025-07-08)
+
+### 🧱 Updated Dependencies
+
+- Updated @trust0/ridb to 1.5.32
+
## 1.4.10 (2025-07-08)
### 🩹 Fixes
diff --git a/packages/ridb-react/README.md b/packages/ridb-react/README.md
index c4b32227..a90a3d2b 100644
--- a/packages/ridb-react/README.md
+++ b/packages/ridb-react/README.md
@@ -1,5 +1,5 @@
-
+
A secure light-weight and dependency free database wrapper for the web.
diff --git a/packages/ridb-react/package.json b/packages/ridb-react/package.json
index 0e1a335b..2e3c418d 100644
--- a/packages/ridb-react/package.json
+++ b/packages/ridb-react/package.json
@@ -1,7 +1,7 @@
{
"name": "@trust0/ridb-react",
"description": "React bindings for RIDB.",
- "version": "1.4.10",
+ "version": "1.4.11",
"author": "elribonazo@gmail.com",
"main": "./build/index.js",
"types": "./build/index.d.ts",
@@ -31,7 +31,7 @@
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
- "@trust0/ridb": "^1.5.31",
+ "@trust0/ridb": "^1.5.32",
"@trust0/ridb-build": "^0.0.16",
"@types/react": "^18",
"@types/react-dom": "^18",
diff --git a/packages/ridb/CHANGELOG.md b/packages/ridb/CHANGELOG.md
index 6daf913b..162f061f 100644
--- a/packages/ridb/CHANGELOG.md
+++ b/packages/ridb/CHANGELOG.md
@@ -1,3 +1,10 @@
+## 1.5.32 (2025-07-08)
+
+### 🧱 Updated Dependencies
+
+- Updated @trust0/ridb-core to 1.7.27
+- Updated @trust0/ridb-core to 1.7.27
+
## 1.5.31 (2025-07-08)
### 🩹 Fixes
diff --git a/packages/ridb/README.md b/packages/ridb/README.md
index 3ec11bc2..5ff7a98b 100644
--- a/packages/ridb/README.md
+++ b/packages/ridb/README.md
@@ -1,5 +1,5 @@
-
+
A secure light-weight and dependency free database wrapper for the web.
diff --git a/packages/ridb/package.json b/packages/ridb/package.json
index e62f065a..d5cec9f1 100644
--- a/packages/ridb/package.json
+++ b/packages/ridb/package.json
@@ -1,6 +1,6 @@
{
"name": "@trust0/ridb",
- "version": "1.5.31",
+ "version": "1.5.32",
"description": "Lightweight db encrypted and secure database wrapper for browser and nodejs.",
"module": "./build/index.js",
"main": "./build/index.js",
@@ -51,7 +51,7 @@
"types": "sh types.sh"
},
"dependencies": {
- "@trust0/ridb-core": "^1.7.26"
+ "@trust0/ridb-core": "^1.7.27"
},
"devDependencies": {
"@trust0/ridb-build": "^0.0.16",
diff --git a/packages/ridb/src/index.ts b/packages/ridb/src/index.ts
index d62bedca..f4132a7c 100644
--- a/packages/ridb/src/index.ts
+++ b/packages/ridb/src/index.ts
@@ -11,7 +11,7 @@ import { RIDBFactory } from "./factory";
* @packageDocumentation
*
*
- *
+ *
*
*
*
A secure light-weight and dependency free database wrapper for the web.
diff --git a/resources/logo.png b/resources/logo.png
new file mode 100644
index 00000000..af5f0ea0
Binary files /dev/null and b/resources/logo.png differ
diff --git a/resources/logo.svg b/resources/logo.svg
new file mode 100644
index 00000000..c15e509e
--- /dev/null
+++ b/resources/logo.svg
@@ -0,0 +1,12 @@
+
+
\ No newline at end of file
diff --git a/resources/ridb-dark.svg b/resources/ridb-dark.svg
new file mode 100644
index 00000000..d6065e60
--- /dev/null
+++ b/resources/ridb-dark.svg
@@ -0,0 +1,13 @@
+
+
\ No newline at end of file
diff --git a/resources/ridb-light.svg b/resources/ridb-light.svg
new file mode 100644
index 00000000..7b839973
--- /dev/null
+++ b/resources/ridb-light.svg
@@ -0,0 +1,13 @@
+
+
\ No newline at end of file
diff --git a/yarn.lock b/yarn.lock
index f08eed67..e699b86e 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4816,7 +4816,7 @@ __metadata:
languageName: unknown
linkType: soft
-"@trust0/ridb-core@npm:^1.7.26, @trust0/ridb-core@workspace:packages/ridb-core":
+"@trust0/ridb-core@npm:^1.7.27, @trust0/ridb-core@workspace:packages/ridb-core":
version: 0.0.0-use.local
resolution: "@trust0/ridb-core@workspace:packages/ridb-core"
dependencies:
@@ -4830,7 +4830,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@trust0/ridb-level@workspace:packages/ridb-level"
dependencies:
- "@trust0/ridb": "npm:^1.5.31"
+ "@trust0/ridb": "npm:^1.5.32"
"@trust0/ridb-build": "npm:^0.0.16"
classic-level: "npm:^2.0.0"
jsdom: "npm:^24.1.3"
@@ -4847,7 +4847,7 @@ __metadata:
"@testing-library/dom": "npm:^10.4.0"
"@testing-library/jest-dom": "npm:^6.6.3"
"@testing-library/react": "npm:^16.1.0"
- "@trust0/ridb": "npm:^1.5.31"
+ "@trust0/ridb": "npm:^1.5.32"
"@trust0/ridb-build": "npm:^0.0.16"
"@types/react": "npm:^18"
"@types/react-dom": "npm:^18"
@@ -4860,12 +4860,12 @@ __metadata:
languageName: unknown
linkType: soft
-"@trust0/ridb@npm:^1.5.31, @trust0/ridb@workspace:packages/ridb":
+"@trust0/ridb@npm:^1.5.32, @trust0/ridb@workspace:packages/ridb":
version: 0.0.0-use.local
resolution: "@trust0/ridb@workspace:packages/ridb"
dependencies:
"@trust0/ridb-build": "npm:^0.0.16"
- "@trust0/ridb-core": "npm:^1.7.26"
+ "@trust0/ridb-core": "npm:^1.7.27"
"@types/sharedworker": "npm:^0.0.150"
jsdom: "npm:^24.1.3"
typescript: "npm:^5.8.3"