3 ms·
Does anyone know of a library similar to slonik[0] for SQLite in the NodeJS space? I generally reach for TypeORM and have tried MikroORM lately but didn’t real
by hardwaresofton 4y ago
Does anyone know of a library similar to slonik[0] for SQLite in the NodeJS space?
I generally reach for TypeORM and have tried MikroORM lately but didn’t really like it.
But what I really want is something like slonik which is more focused on querying than relational mapping.
[0]: https://github.com/gajus/slonik https://github.com/gajus/slonik
- lf-non 4y agoYou can use ts-sql-query [1]. It has a complete query builder API, but you can also use sql fragments similar to slonik. SQlite is supported along with most other mainstream databases. [1] ts-sql-query.readthedocs.io/
- deleted 4y ago[deleted]
- Rapzid 4y agoMikroOrm is a pretty fantastic project IMO. It uses Knex as the query builder so maybe you can just use that directly: https://knexjs.org/ https://knexjs.org/ Although, I would use Mikro still to manage schema and migrations. Then drop down to Knex: https://mikro-orm.io/docs/query-builder#using-knexjs https://mikro-orm.io/docs/query-builder#using-knexjs