File: sqlite.js

package info (click to toggle)
seed 3.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,900 kB
  • sloc: ansic: 24,336; sh: 11,196; makefile: 773; xml: 187; python: 173
file content (21 lines) | stat: -rw-r--r-- 1,326 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
funcs = [{id: "sqlite-database",
	  title: "new sqlite.Database(filename)",
	  description: "Constructs a new sqlite.Database",
	  params: [
	      {name: "filename", description: "The SQLite database to be opened (or constructed if it does not exist"}
	  ],
	  returns: "A new sqlite.Database object, the <parameter>status</parameter> property will be one of the SQLite status enums"
	 },
	 {id: "sqlite-exec",
	  title:"database.exec(command, callback)",
	  description: "<para>Executes the SQLite <parameter>command</parameter> on the given database. If <parameter>callback</parameter> is defined, it is called with each table entry from the given command, with a single argument. The argument has properties for each value in the returned table entry.</para><para>Keep in mind that, just like in C, it is necessary to sanitize user input in your SQL before passing it to the database.</para>",
	  params: [
	      {name: "command", description: "The SQLite command to evaluate"},
	      {name: "callback", description: "The callback to invoke, should expect one argument and return nothing. <parameter>optional</parameter>"}
	  ],
	  returns: "An SQLite status enum representing the result of the operation"},
	 {id: "sqlite-close",
	  title: "database.close()",
	  description: "Closes an SQLite database and syncs"}];