{"repo":"mlaanderson/database-js","free":true,"listed":false,"github":"https://github.com/mlaanderson/database-js","clone":"git clone https://github.com/mlaanderson/database-js.git","description":"Common Database Interface for Node","language":"JavaScript","stars":80,"topics":["database","javascript","javascript-library","node","node-module","sql","wrapper","mysql","postgresql","sqlite"],"license":"MIT","category":"databases-storage","readme_excerpt":"database-js Wrapper for multiple databases with a JDBC-like connection Database-js implements a common, promise-based interface for SQL database access. Inspired by JDBC, it uses connection strings to identify the database driver. Wrappers around native database drivers provide a unified interface to handle databases. Thus, you can change the target database by modifying the connection string. 😉 Database-js has built-in prepared statements, even if the underlying driver does not support them. It is built on Promises, so it works well with ES7 async code. Contents Install Usage Examples API Drivers In the Browser Install Drivers Driver (wrapper) Note Installation ---------------- ---- ------------ ActiveX Data Objects Windows only npm i database-js-adodb CSV files npm i database-js-csv Excel files npm i database-js-xlsx Firebase npm i database-js-firebase INI files npm i database-js-ini JSON files npm i database-js-json MySQL prior to MySQL v8 npm i database-js-mysql MySQL2 MySQL v8+ npm i database-js-mysql2 MS SQL Server npm i database-js-mssql PostgreSQL npm i database-js-postgres SQLite3 npm i database-js-sqlite3 SQLite npm i database-js-sqlite See here how to add a new driver. Usage Usage without async/await: Async / await Using async/await: Basic API See also - Wiki for more examples and how to use a connection pool. - codeceptjs-dbhelper - Allows to use database-js inside CodeceptJS tests (as a helper). License MIT","default_branch":null,"files":null,"tree":[],"storefront":"/r/mlaanderson","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mlaanderson/database-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}