2017-06-23 09:40:20 +00:00
|
|
|
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'
|
2017-06-23 09:40:20 +00:00
|
|
|
|
|
|
|
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)
|
2017-06-23 09:40:20 +00:00
|
|
|
return objectDoc
|
|
|
|
}
|