File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 1
1
# sqlite
2
2
3
+ [ ![ Build Status] ( https://travis-ci.com/sqlite-js/sqlite.svg?branch=master )] ( https://travis-ci.com/sqlite-js/sqlite )
4
+
3
5
An experimental SQLite library for Node using Neon
4
6
5
7
## Goals
6
8
* APIs
7
9
* Query binding
8
10
* Connection creation and closing
9
- * Connection Pooling
10
- * Parallel queryies
11
+ * Connection pooling
12
+ * Parallel queries
11
13
* Serialization
12
14
* Traces and profiling
13
15
* Modern infrastructure
@@ -28,15 +30,10 @@ import Sqlite from '@sqlite/sqlite';
28
30
29
31
const connector = new Sqlite ();
30
32
31
- // Creating an in-memory async connection
32
- const memoryConn = await connector .createInMemory ({
33
- verbose: false
34
- });
35
-
36
33
// Creating a regular async connection
37
34
const conn = await connection .create ({
38
- database: ' /path/to/database' ,
39
- verbose: true
35
+ database: ' /path/to/database' , // ':memory:'
36
+ verbose: true // process.env.NODE_ENV !== 'production'
40
37
});
41
38
42
39
// Parallel queries
Original file line number Diff line number Diff line change 9
9
"neon-cli" : " ^0.2.0"
10
10
},
11
11
"scripts" : {
12
- "build" : " neon build" ,
12
+ "build" : " neon build --release " ,
13
13
"install" : " yarn build" ,
14
14
"lint" : " eslint lib test" ,
15
15
"test" : " jest ."
You can’t perform that action at this time.
0 commit comments