Skip to main content

database

there are several methods from initialised lite : useDb,createDb,removeDb,info

            //createDb
let db = lite.createDb('blog')//runs once if exists not create

//useDb
let db = lite.useDb('blog') //returns db methods

//removedb
lite.removeDb('blog') // danger clears whole db and its collections

//info
console.log(db.info())