You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-5
Original file line number
Diff line number
Diff line change
@@ -41,12 +41,11 @@ Execute SQL `query` for `db` database.
41
41
First argument `db` must be sqlite3 instance. If you use placeholders in `query`,
42
42
then you must pass `bounds` too.
43
43
44
-
#### `(sqlite3-execute db query &optional callback)`
44
+
#### `(sqlite3-execute db query &rest args)`
45
45
46
-
Interface for executing `SELECT` query. If you pass `callback` argument,
47
-
`callback` is called with `SELECT` results. `callback` takes 2 arguments,
48
-
`row` and `fields`. `row` is value, `fields` are column names. If `callback`
49
-
is not specified, this function returns `resultset` instance.
46
+
Interface for executing `SELECT` query.
47
+
48
+
Rest parameters are `bounds` and `callback`. You can its argument as, either '(bounds) or '(callback) or '(bounds callback). `callback` function is called with database row. `callback' takes two arguments, first argument is row element of list, second argument is field names of list.
0 commit comments