SQL adapter for Bass.js, a JavaScript ODM (Object Document Mapper). Version 0.0.29 is the latest, with irregular releases. It provides a familiar ODM interface for SQL databases, supporting SQLite, PostgreSQL, MySQL, and MSSQL via a pluggable client. Unlike full ORMs like Sequelize or TypeORM, bass-sql keeps the ODM pattern minimal and schema-less, delegating query building to Bass.js and database connectivity to external npm packages such as sql.js, pg, mysql2, and tedious.
npm install bass-sqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up a Bass.js ODM with an SQLite backend using bass-sql, defines a model, creates a record, and queries all records.
Use separate migration tools like knex or typeorm migrations.
Refer to Bass.js update notes.
npm install pg for PostgreSQL, mysql2 for MySQL, tedious for MSSQL.
Consider using a full ORM like Sequelize for complex SQL operations.
npm install sql.js
Use import adapter from 'bass-sql'; then adapter(driver).
npm install pg