This is a port to Expo for react-native. Require
to be installed and configured first.
Because there are limited tools for the Expo platform, we only support "sqlite" driver.
A SQL query builder that is flexible, portable, and fun to use!
A batteries-included, multi-dialect (MSSQL, MySQL, PostgreSQL, SQLite3, Oracle(including Oracle Wallet Authentication), WebSQL) query builder for Node.js and the Browser, featuring:
- connection pooling
- streaming queries
- both a promise and callback API
- a thorough test suite
- the ability to run in the Browser
For support and questions, join the
#bookshelf channel on freenode IRC
For an Object Relational Mapper, see:
To see the SQL that Knex will generate for a given query, see: Knex Query Lab
We have several examples on the website. Here is the first one to get you started:
var knex =dialect: 'sqlite3';// Create a tableknexschema// ...and another// Then query the table...// ...and using the insert id, insert into the other table.// Query both of the rows.// .map over the results// Finally, add a .catch handler for the promise chain;