@small-tech/jsdb
Version:
A zero-dependency, transparent, in-memory, streaming write-on-update JavaScript database for Small Web applications that persists to a JavaScript transaction log.
26 lines (24 loc) • 712 B
TypeScript
export default class JSTable {
/**
Either loads the table at the passed table path (default) or, if
data is passed, creates a new table at table path, populating
it with the passed data.
@param {string} tablePath
*/
constructor(tablePath: string, data?: any, options?: {
compactOnLoad: boolean;
alwaysUseLineByLineLoads: boolean;
});
get alwaysUseLineByLineLoads(): any;
tablePath: string;
tableFileName: string;
tableName: string;
_create(tablePath?: any): void;
create(): void;
compact(): void;
close(): Promise<any>;
delete(): Promise<void>;
load(): void;
persistChange(change: any): void;
#private;
}