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 23:02:11 +00:00
|
|
|
|
2016-09-13 20:53:21 +00:00
|
|
|
export class DbDoc<T> {
|
|
|
|
collection: DbCollection<T>
|
|
|
|
creationType: TDocCreation
|
2016-09-13 23:02:11 +00:00
|
|
|
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 23:02:11 +00:00
|
|
|
|
2016-09-13 20:53:21 +00:00
|
|
|
}
|
|
|
|
}
|