UNPKG

@openland/foundationdb-core

Version:

Node.js bindings for the FoundationDB database

12 lines (11 loc) 450 B
import * as fdb from './native'; import Transaction from './transaction'; import { DatabaseOptions, TransactionOptions } from './opts.g'; export default class Database { private readonly _db; constructor(db: fdb.NativeDatabase); setNativeOptions(opts: DatabaseOptions): void; rawCreateTransaction(opts?: TransactionOptions): Transaction; close(): void; } export declare const createDatabase: (db: fdb.NativeDatabase) => Database;