get

Get record from db.

async get(key:string | Uint8Array, options:ReadOptions):Promise<Uint8Array>

Example

const db = new Database()
const value = await db.get('key')
console.log(new TextDecoder().decode(value))

key

ReadOptions

FieldTypeDefaultDescription