Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sqlite3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
node-sqlite3
Commits
b85af74e
Commit
b85af74e
authored
Feb 24, 2011
by
Konstantin Käfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update readme
parent
f6f7da7d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
README.md
README.md
+5
-2
No files found.
README.md
View file @
b85af74e
...
@@ -6,12 +6,15 @@ node-sqlite3 - Asynchronous, non-blocking [SQLite3](http://sqlite.org/) bindings
...
@@ -6,12 +6,15 @@ node-sqlite3 - Asynchronous, non-blocking [SQLite3](http://sqlite.org/) bindings
# USAGE
# USAGE
Install with
`npm install sqlite3`
var sqlite3 = require('sqlite3').verbose();
var db = new sqlite3.Database(':memory:');
var db = new sqlite3.Database(':memory:');
db.serialize(function() {
db.serialize(function() {
db.run("CREATE TABLE lorem (info TEXT)");
db.run("CREATE TABLE lorem (info TEXT)");
var stmt = db.prepare("INSERT INTO lorem VALUES(?)");
var stmt = db.prepare("INSERT INTO lorem VALUES
(?)");
for (var i = 0; i < 10; i++) {
for (var i = 0; i < 10; i++) {
stmt.run("Ipsum " + i);
stmt.run("Ipsum " + i);
}
}
...
@@ -272,7 +275,7 @@ To obtain and build the bindings:
...
@@ -272,7 +275,7 @@ To obtain and build the bindings:
You can also use
[
`npm`
](
https://github.com/isaacs/npm
)
to download and install them:
You can also use
[
`npm`
](
https://github.com/isaacs/npm
)
to download and install them:
npm install
https://github.com/developmentseed/node-sqlite3/tarball/master
npm install
sqlite3
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment