smartdata/ts/smartdata.classes.dbobjectdoc.ts

13 lines
386 B
TypeScript
Raw Normal View History

import * as plugins from './smartdata.plugins'
import { Db } from './smartdata.classes.db'
import { DbDoc } from './smartdata.classes.dbdoc'
2018-01-07 16:26:34 +00:00
import { DbTable } from './smartdata.classes.dbcollection'
export let getObjectDoc = (nameArg,dbArg: Db) => {
let objectDoc = new DbDoc()
objectDoc.name = nameArg
2018-01-07 16:26:34 +00:00
objectDoc.collection = new DbTable(objectDoc, dbArg)
return objectDoc
}