smartdata/ts/smartdata.classes.dbdoc.ts

22 lines
436 B
TypeScript
Raw Normal View History

2016-09-13 20:53:21 +00:00
import * as plugins from './smartdata.plugins'
import { Db } from './smartdata.classes.db'
import { DbCollection } from './smartdata.classes.dbcollection'
export type TDocCreation = 'db' | 'data' | 'mixed'
2016-09-13 20:53:21 +00:00
export class DbDoc<T> {
collection: DbCollection<T>
creationType: TDocCreation
constructor() {
this.collection = this.constructor['dbCollection']
2016-09-13 20:53:21 +00:00
}
save() {
2016-11-17 11:20:52 +00:00
2016-09-13 20:53:21 +00:00
}
saveDeep() {
2016-09-13 20:53:21 +00:00
}
}