javascript - Where does ForerunnerDB save its Database? -
i write html file supposed run in browser locally, create , modify database (forerunner db) , , show results.
i wrote below , should find database file ? below enough "once page loaded " sse db or there "save" command ?
<!doctype html> <meta charset="utf-8" /> <title>ouch</title> <body> <p id="out">testing..</br> > </body> <script src="c:\users\n17263\node_modules\forerunnerdb\js\dist\fdb-all.min.js" type="text/javascript"></script> <script> var db = new forerunnerdb('db'); var customers= db.collection('customers'); var suppliers= db.collection('suppliers'); var items= db.collection('items'); var s_itmes= db.collection('s_items'); var purchase_invoices= db.collection('purchase_invoices'); var sales_invoices= db.collection('sales_invoices'); var orders= db.collection('orders'); customers.insert({name:'mohammad'}); </script>
it saves database indexeddb, websql or localstorage. can specify manually, documentation shows here.
Comments
Post a Comment