@wxn0brp/db
Version:
A simple file-based database management system with support for CRUD operations, custom queries, and graph structures.
20 lines (19 loc) • 441 B
TypeScript
import dbActionC from "../actions/action.js";
import executorC from "../helpers/executor.js";
export interface DbOpts {
maxFileSize?: number;
dbAction?: dbActionC;
executor?: executorC;
}
export interface DbFindOpts {
reverse?: boolean;
max?: number;
offset?: number;
sortBy?: string;
sortAsc?: boolean;
}
export interface FindOpts {
select?: string[];
exclude?: string[];
transform?: Function;
}