Installation
Use your favourite package manager to install the module from @abw/badger-database
. You should also install at least one of the database driver modules:
pg
for Postgresmysql2
for Mysql or MariaDBbetter-sqlite3
for Sqlite.
shell
// postgres
npm install @abw/badger-database pg
// mysql
npm install @abw/badger-database mysql2
// sqlite
npm install @abw/badger-database better-sqlite3
shell
// postgres
pnpm add @abw/badger-database pg
// mysql
pnpm add @abw/badger-database mysql2
// sqlite
pnpm add @abw/badger-database better-sqlite3
shell
// postgres
yarn add @abw/badger-database pg
// mysql
yarn add @abw/badger-database mysql
// sqlite
yarn add @abw/badger-database better-sqlite3
Where Next?
Once you've got it installed you're ready to connect to a database.