Subj : database object
To   : Ragnarok
From : Digital Man
Date : Mon Apr 09 2007 03:38 pm

 Re: database object
 By: Ragnarok to DOVE-Net.Sync_JavaScript on Sun Apr 08 2007 05:32 pm

> Hi people
> i try to add a database support the the js script in syncrhonet
> i use (at moment) sqlite as backend.
>
> i thinking in an object that may be used to easy storage data for door or
> modules and easy access via sql standard commands.
> an simple example of script code :
>
> db = new Sqlite("/tmp/tu_base.db");
> db.open();
> db.stmt = "CREATE TABLE prueba (field1 int , field2 varchar(100))";
> db.exec();

Why not just db.exec("CREATE TABLE prueba (field1 int , field2 varchar(100))")
?

                                      digital man (xbox-live: digitlman)

Snapple "Real Fact" #161:
The first TV network kids show in the U.S. was "Captain Kangaroo."
Norco, CA WX: 88.3�F, 31% humidity, 4 mph SSE wind, 0.00 inches rain/24hrs

---
� Synchronet � Vertrauen � Home of Synchronet � telnet://vert.synchro.net