'use strict' ; import Condition from '../condition' ; import * as shortid from 'shortid' ; import { PlainObject } from 'egg' ; export default class DB { public instance : any ; public name : string ; constructor ( name = 'blog.json' ) { this . name = name ; } public getUniqueId ( ) { return shortid . generate ( ) ; } public get ( collectionName ) { return null ; } public query ( collectionName , json ) { return null ; } public add ( collectionName , json ) { return null ; } public update ( collectionName , where , json ) { return null ; } public delete ( collectionName , field ) { return null ; } public getPager ( collectionName , condition ) { return null ; } }