Skip to content

Commit 7b2cd3c

Browse files
grumdrigEric Fredricksen
authored andcommitted
Rename sqlite3.js without the 3
1 parent d1550a2 commit 7b2cd3c

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

README

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Node.js bindings for sqlite3
44
Functions
55
-------------------
66

7-
### `new sqlite3.Db(filename)`
7+
### `sqlite.openDatabaseSync(filename)`
88

99
Returns an object representing the sqlite3 database with given filename.
1010

11-
### `sqlite3.Db.query(sql [,bindings] [,callback])`
11+
### `DatabaseSync.query(sql [,bindings] [,callback])`
1212

1313
Executes the query `sql`, with variables bound from `bindings`. The
1414
variables can take the form `?` or `?NNN` where `NNN` is a number, in which
@@ -29,16 +29,16 @@ Within the callback, `this` is an array of all such arrays, with a
2929
`count` property giving the total number of rows affected. That same
3030
`this` object is returned by `query`.
3131

32-
### `sqlite3.Db.close()`
32+
### `sqlite.Db.close()`
3333

3434
Closes the database.
3535

3636

3737
Example
3838
--------
3939

40-
var sqlite3 = require("./sqlite3");
41-
var db = new sqlite3.Db("test.db");
40+
var sqlite = require("./sqlite");
41+
var db = new sqlite.Db("test.db");
4242
db.query("INSERT INTO test (column) VALUES ($value)", {$value: 10});
4343
db.query("SELECT column FROM test WHERE rowid<?", [5], function (rows) {
4444
process.assert(rows[0].column == 10);

compiloop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import os, sys, time
66

77
#filenames = sys.argv[1:]
8-
filenames = ["sqlite3_bindings.cc", "wscript", "sqlite3.js", "test.js"]
8+
filenames = ["sqlite3_bindings.cc", "wscript", "sqlite.js", "test.js"]
99
mdname = "README"
1010

1111
def handler():
File renamed without changes.

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
var sys = require("sys");
44
var posix = require("posix");
5-
var sqlite3 = require("./sqlite3");
5+
var sqlite = require("./sqlite");
66

77
posix.unlink('test.db');
88

9-
var db = sqlite3.openDatabaseSync('test.db');
9+
var db = sqlite.openDatabaseSync('test.db');
1010

1111
db.query("CREATE TABLE egg (a,y,e)");
1212
db.query("INSERT INTO egg (a) VALUES (1)", function () {

0 commit comments

Comments
 (0)