- Preparing search index...
- The search index is not available
@matrixai/db
Methods
batchClear
- batchClear(batch): void
-
Returns void
batchDel
- batchDel(batch, key): void
-
Returns void
batchDo
- batchDo(database, operations, options, callback): void
-
Returns void
batchPut
- batchPut(batch, key, value): void
-
Parameters
-
-
key: string | Buffer
-
value: string | Buffer
Returns void
batchWrite
- batchWrite(batch, options, callback): void
-
Returns void
dbApproximateSize
- dbApproximateSize(database, start, end, callback): void
-
Parameters
-
-
start: string | Buffer
-
end: string | Buffer
-
callback: Callback<[number], void>
Returns void
dbClear
- dbClear(database, options, callback): void
-
Returns void
dbClose
- dbClose(database, callback): void
-
Returns void
dbCompactRange
- dbCompactRange(database, start, end, callback): void
-
Parameters
-
-
start: string | Buffer
-
end: string | Buffer
-
callback: Callback<[], void>
Returns void
dbCount
- dbCount(database, options, callback): void
-
Returns void
dbDel
- dbDel(database, key, options, callback): void
-
Parameters
-
-
key: string | Buffer
-
-
callback: Callback<[], void>
Returns void
dbGet
- dbGet(database, key, options, callback): void
-
Returns void
- dbGet(database, key, options, callback): void
-
Returns void
dbGetProperty
- dbGetProperty(database, property): string
-
Returns string
dbMultiGet
- dbMultiGet(database, keys, options, callback): void
-
Returns void
- dbMultiGet(database, keys, options, callback): void
-
Returns void
dbOpen
- dbOpen(database, location, options, callback): void
-
Parameters
-
-
location: string
-
-
callback: Callback<[], void>
Returns void
dbPut
- dbPut(database, key, value, options, callback): void
-
Parameters
-
-
key: string | Buffer
-
value: string | Buffer
-
-
callback: Callback<[], void>
Returns void
destroyDb
- destroyDb(location, callback): void
-
Parameters
-
location: string
-
callback: Callback<[], void>
Returns void
iteratorClose
- iteratorClose(iterator, callback): void
-
Returns void
iteratorNextv
- iteratorNextv<K, V>(iterator, size, callback): void
-
Type Parameters
-
K extends string | Buffer
-
V extends string | Buffer
Parameters
-
-
size: number
-
callback: Callback<[[K, V][], boolean], void>
Returns void
iteratorSeek
- iteratorSeek<K>(iterator, target): void
-
Type Parameters
-
K extends string | Buffer
Returns void
repairDb
- repairDb(location, callback): void
-
Parameters
-
location: string
-
callback: Callback<[], void>
Returns void
snapshotRelease
- snapshotRelease(snapshot, callback): void
-
Returns void
transactionClear
- transactionClear(transaction, options, callback): void
-
Returns void
transactionCommit
- transactionCommit(transaction, callback): void
-
Returns void
transactionCount
- transactionCount(transaction, options, callback): void
-
Returns void
transactionDel
- transactionDel(transaction, key, callback): void
-
Parameters
-
-
key: string | Buffer
-
callback: Callback<[], void>
Returns void
transactionGet
- transactionGet(transaction, key, options, callback): void
-
Parameters
-
-
key: string | Buffer
-
-
callback: Callback<[string], void>
Returns void
- transactionGet(transaction, key, options, callback): void
-
Parameters
-
-
key: string | Buffer
-
-
callback: Callback<[Buffer], void>
Returns void
transactionGetForUpdate
- transactionGetForUpdate(transaction, key, options, callback): void
-
Parameters
-
-
key: string | Buffer
-
-
callback: Callback<[string], void>
Returns void
- transactionGetForUpdate(transaction, key, options, callback): void
-
Parameters
-
-
key: string | Buffer
-
-
callback: Callback<[Buffer], void>
Returns void
transactionId
- transactionId(transaction): number
-
Returns number
transactionIteratorInit
- transactionIteratorInit(transaction, options): RocksDBIterator<Buffer, Buffer>
-
- transactionIteratorInit(transaction, options): RocksDBIterator<Buffer, string>
-
- transactionIteratorInit(transaction, options): RocksDBIterator<string, Buffer>
-
- transactionIteratorInit(transaction, options): RocksDBIterator<string, string>
-
transactionMultiGet
- transactionMultiGet(transaction, keys, options, callback): void
-
Parameters
-
-
keys: (string | Buffer)[]
-
-
callback: Callback<[string[]], void>
Returns void
- transactionMultiGet(transaction, keys, options, callback): void
-
Parameters
-
-
keys: (string | Buffer)[]
-
-
callback: Callback<[Buffer[]], void>
Returns void
transactionMultiGetForUpdate
- transactionMultiGetForUpdate(transaction, keys, options, callback): void
-
Parameters
-
-
keys: (string | Buffer)[]
-
-
callback: Callback<[string[]], void>
Returns void
- transactionMultiGetForUpdate(transaction, keys, options, callback): void
-
Parameters
-
-
keys: (string | Buffer)[]
-
-
callback: Callback<[Buffer[]], void>
Returns void
transactionPut
- transactionPut(transaction, key, value, callback): void
-
Parameters
-
-
key: string | Buffer
-
value: string | Buffer
-
callback: Callback<[], void>
Returns void
transactionRollback
- transactionRollback(transaction, callback): void
-
Returns void