[v8-juice] r2246 committed - Edited wiki page JSPDO_API through web user interface.

1 view
Skip to first unread message

v8-j...@googlecode.com

unread,
Apr 13, 2012, 7:51:36 AM4/13/12
to v8-juice-...@googlegroups.com
Revision: 2246
Author: sgb...@gmail.com
Date: Fri Apr 13 04:51:23 2012
Log: Edited wiki page JSPDO_API through web user interface.
http://code.google.com/p/v8-juice/source/detail?r=2246

Modified:
/wiki/JSPDO_API.wiki

=======================================
--- /wiki/JSPDO_API.wiki Thu Apr 12 06:23:10 2012
+++ /wiki/JSPDO_API.wiki Fri Apr 13 04:51:23 2012
@@ -180,9 +180,9 @@
|| *Method* || *Description* ||
|| `void finalize()` || Frees all resources associated with the statement.
All statements _must_ be finalized after use or the db handle might get in
an unusable state. ||
|| `void bind(index[,value])` || Binds a value (default=NULL) to the given
_1-based_ parameter index or name (in the form `:paramName`). The _type_ of
the given value determines how the value is bound (e.g. as an integer,
double, string, or BLOB ([V8Convert_ByteArray ByteArray]). Returns this
object. ||
-|| `void bind(Array)` || Binds each value in the given array to the next
subsequent bindable parameter. e.g. `bind([7,null,11])` binds parameters 1
to 3 with the given values. Returns this object. ||
-|| `void bind(Object)` || Binds each key/value pair in the given object,
treating the object's keys as bound parameter names. e.g.
`bind({':p1',':p2':...})`. Returns this object. ||
-|| `void bind(Statement)` || Binds all columns from the `Statement` object
argument to the columns in the current statement. This can be used, e.g. to
copy results from one table into another. TODO: accept array of param
column numbers/names to copy, instead of copying all. Returns this object. |
|
+|| `Statement bind(Array)` || Binds each value in the given array to the
next subsequent bindable parameter. e.g. `bind([7,null,11])` binds
parameters 1 to 3 with the given values. Returns this object. ||
+|| `Statement bind(Object)` || Binds each key/value pair in the given
object, treating the object's keys as bound parameter names. e.g.
`bind({':p1',':p2':...})`. Returns this object. ||
+|| `Statement bind(Statement)` || Binds all columns from the `Statement`
object argument to the columns in the current statement. This can be used,
e.g. to copy results from one table into another. TODO: accept array of
param column numbers/names to copy, instead of copying all. Returns this
object. ||
|| `bool step()` || "Steps" one row through a result set or executes a
non-result query. Returns false if it is at the end of the set (or the
query had no data to return, like an `INSERT`) or true if it successfully
fetched a row. ||
|| `Array stepArray()` || Like `step()` but returns all of the columns
from the fetched row as an array of values. It returns `null` at the end of
the result set. ||
|| `Object stepObject()` || Like `step()` but returns all of the columns
from the fetched row as an Object, using the column names as the object
keys. It returns `null` at the end of the result set. ||

Reply all
Reply to author
Forward
0 new messages