UNPKG

@ostore/db

Version:

基于fs模块的本地数据库

12 lines (11 loc) 588 B
import { IFileHanderProps, ICopyFileProps, IReadDatabaseProps, IWriteDatabaseOptionsProps, IWriteDatabaseResultProps } from './type'; declare class FileHander { private model; private databasePath; constructor(props: IFileHanderProps); _copyFile: (source: any, target: any) => Promise<ICopyFileProps>; _unlinkFile: (target: string) => Promise<unknown>; _readDatabase: (options: IReadDatabaseProps) => Promise<ICopyFileProps>; _writeDatabase: (data: any, options?: IWriteDatabaseOptionsProps) => Promise<IWriteDatabaseResultProps>; } export default FileHander;