Class: abstract
StorageInternal<Schemas>
Defined in: ridb_core.d.ts:473
Extended by
Type Parameters
Schemas
Schemas
extends SchemaTypeRecord
Constructors
Constructor
typescript
1
new StorageInternal<Schemas>(name, schemas): StorageInternal<Schemas>
Defined in: ridb_core.d.ts:474
Parameters
name
string
schemas
Schemas
Returns
StorageInternal
<Schemas
>
Methods
close()
typescript
1
abstract close(): Promise<void>
Defined in: ridb_core.d.ts:479
Returns
Promise
<void
>
count()
typescript
1
abstract count(colectionName, query, options?): Promise<number>
Defined in: ridb_core.d.ts:480
Parameters
colectionName
keyof Schemas
query
QueryType
<Schemas
[keyof Schemas
]>
options?
Returns
Promise
<number
>
find()
typescript
1
abstract find(collectionName, query, options?): Promise<Doc<Schemas[keyof Schemas]>[]>
Defined in: ridb_core.d.ts:489
Parameters
collectionName
keyof Schemas
query
QueryType
<Schemas
[keyof Schemas
]>
options?
Returns
Promise
<Doc
<Schemas
[keyof Schemas
]>[]>
findDocumentById()
typescript
1
abstract findDocumentById(collectionName, id): Promise<null | Doc<Schemas[keyof Schemas]>>
Defined in: ridb_core.d.ts:485
Parameters
collectionName
keyof Schemas
id
string
Returns
Promise
<null
| Doc
<Schemas
[keyof Schemas
]>>
start()
typescript
1
abstract start(): Promise<void>
Defined in: ridb_core.d.ts:478
Returns
Promise
<void
>
write()
typescript
1
abstract write(op): Promise<Doc<Schemas[keyof Schemas]>>
Defined in: ridb_core.d.ts:494
Parameters
op
Operation
<Schemas
[keyof Schemas
]>
Returns
Promise
<Doc
<Schemas
[keyof Schemas
]>>