mercredi 1 avril 2015

Where does ForerunnerDB save its Database?

I am about to write an HTML file which is supposed to run in the browser locally, create and modify a database (Forerunner DB) , and show some results.


I wrote the below , where should I find the database file ? is the below enough "once the page is loaded " to sse the DB or there is some "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>




Aucun commentaire:

Enregistrer un commentaire