opfsdb / Exports / DatabaseManager
• new DatabaseManager(): DatabaseManager
• Private
commandHandlers: Record
<string
, <CMD>(command
: CMD
) => Promise
<void
| any
[] | string
[]>>
• Private
tables: Record
<string
, OPFSDB
<any
>> = {}
▸ createTable(«destructured»
): Promise
<void
>
Name | Type |
---|---|
«destructured» |
ICreateTableInput |
Promise
<void
>
▸ delete(«destructured»
): Promise
<void
>
Name | Type |
---|---|
«destructured» |
IDeleteInput |
Promise
<void
>
▸ drop(«destructured»
): Promise
<void
>
Name | Type |
---|---|
«destructured» |
IDropInput |
Promise
<void
>
▸ executeCommand<T
>(command
): Promise
<void
| string
[] | T
[]>
Name | Type |
---|---|
T |
extends IBasicRecord |
Name | Type |
---|---|
command |
ICommandInputs <T > |
Promise
<void
| string
[] | T
[]>
▸ import<T
>(«destructured»
): Promise
<void
>
Name | Type |
---|---|
T |
extends IBasicRecord |
Name | Type |
---|---|
«destructured» |
IImportInput <T > |
Promise
<void
>
▸ insert<T
>(«destructured»
): Promise
<void
>
Name | Type |
---|---|
T |
extends IBasicRecord |
Name | Type |
---|---|
«destructured» |
IInsertInput <T > |
Promise
<void
>
▸ query<T
>(input
): Promise
<string
[] | T
[]>
Name |
---|
T |
Name | Type |
---|---|
input |
IQueryInput <IBasicRecord > |
Promise
<string
[] | T
[]>
▸ read<T
>(«destructured»
): Promise
<T
[]>
Name |
---|
T |
Name | Type |
---|---|
«destructured» |
IReadInput |
Promise
<T
[]>
▸ readMany<T
>(«destructured»
): Promise
<T
[]>
Name |
---|
T |
Name | Type |
---|---|
«destructured» |
IReadManyInput |
Promise
<T
[]>
▸ unloadTables(): Promise
<void
>
Promise
<void
>