An experimental SQL database adapter for Sails.js / Waterline ORM that attempts to unify multiple SQL dialects (MySQL, PostgreSQL, Microsoft SQL Server, Oracle, SQLite) under a single adapter interface. Version 0.1.0-6 (pre-1.0) targets Node >=8 and is explicitly marked as 'DO NOT USE IN PRODUCTION' with a planned stable release in 2019. The project appears abandoned as of 2025 with no stable release. Unlike the legacy per-database adapters (sails-mysql, sails-postgresql), this adapter uses knex internally for dialect abstraction. PostgreSQL support was listed as 'under construction' and never completed. Key differentiator: single adapter for multiple SQL databases, but at the cost of instability and incomplete feature parity.
npm install sails-sqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup of sails-sql adapter in a Sails.js app with MySQL, defining a model and creating a record.
Use stable legacy adapters (sails-mysql, sails-postgresql) for production.
Consider using sails-mysql, sails-postgresql, or migrate to a different ORM like Sequelize or Knex.
Check Sails version with `sails --version` and upgrade if needed.
Consult Sails documentation for proper connection URL format for each database.
Run `npm install sails-sql --save` and use `require('sails-sql').adapter`.Ensure you are using the correct adapter from this package. If using a newer Sails version, this adapter may be incompatible.
Set a valid connection URL in config/datastores.js, e.g., `url: 'mysql://user:pass@localhost/mydb'`.