21 lines
485 B
TypeScript
21 lines
485 B
TypeScript
import * as plugins from './smartdata.plugins'
|
|
|
|
import { Db } from './smartdata.classes.db'
|
|
import { DbCollection } from './smartdata.classes.dbcollection'
|
|
|
|
export type TDocCreation = 'db' | 'data' | 'mixed'
|
|
|
|
export class DbDoc<T> {
|
|
collection: DbCollection<T>
|
|
creationType: TDocCreation
|
|
constructor(collectionNameArg: string, dbArg: Db ) {
|
|
this.collection = new DbCollection<T>(collectionNameArg, dbArg)
|
|
}
|
|
save() {
|
|
|
|
}
|
|
saveDeep() {
|
|
|
|
}
|
|
}
|