[v8-juice] r2252 committed - Edited wiki page JSPDO_HowTo through web user interface.

1 view
Skip to first unread message

v8-j...@googlecode.com

unread,
Jun 30, 2012, 12:49:48 PM6/30/12
to v8-juice-...@googlegroups.com
Revision: 2252
Author: sgb...@gmail.com
Date: Sat Jun 30 09:49:37 2012
Log: Edited wiki page JSPDO_HowTo through web user interface.
http://code.google.com/p/v8-juice/source/detail?r=2252

Modified:
/wiki/JSPDO_HowTo.wiki

=======================================
--- /wiki/JSPDO_HowTo.wiki Thu Apr 12 06:24:56 2012
+++ /wiki/JSPDO_HowTo.wiki Sat Jun 30 09:49:37 2012
@@ -26,17 +26,21 @@

==Connecting==

-To connect to a database we need a so-called DSN string and possibly user
credentials. See [http://fossil.wanderinghorse.net/wikis/cpdo/?page=DSN the
cpdo wiki] for the full description of the DSN string format.
+To connect to a database we need a so-called DSN string and possibly user
credentials. See [http://fossil.wanderinghorse.net/wikis/cpdo/?page=DSN the
cpdo wiki] for the full description of the DSN string format and details
regarding to the various driver-specific configuration options.

Examples:

{{{
// For sqlite3:
-var db = new JSPDO("sqlite3:/path/to/db.sqlite3");
+var db;
+db = new JSPDO("sqlite3:/path/to/db.sqlite3;openmode=rwc");
// For an in-memory database use: "sqlite3::memory:"

+// For sqlite4:
+db = new JSPDO("sqlite4:/path/to/db.sqlite4");
+
// For MySQLv5:
-var db = new JSPDO("mysql5:dbname=abc;host=localhost",
+db = new JSPDO("mysql5:dbname=abc;host=localhost",
"user", "password");
}}}

Reply all
Reply to author
Forward
0 new messages