mirror of
https://github.com/knex/knex.git
synced 2025-12-28 15:38:41 +00:00
Merge branch 'master' of github.com:tgriesser/knex
* 'master' of github.com:tgriesser/knex: add docs
This commit is contained in:
commit
55ef992d1a
12
index.html
12
index.html
@ -481,6 +481,18 @@ var knex = require('knex').knex;
|
||||
knex('table').where('id', 1).select().then(...
|
||||
</pre>
|
||||
|
||||
Note: When you use the SQLite3 adapter, there is a filename required, not a network connection. For example:
|
||||
|
||||
<pre>
|
||||
var knex = Knex.initialize({
|
||||
client: 'sqlite3',
|
||||
connection: {
|
||||
filename: "./mydb.sqlite"
|
||||
}
|
||||
});
|
||||
</pre>
|
||||
|
||||
|
||||
<h2 id="Builder">knex.builder</h2>
|
||||
|
||||
<p>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user