Better-sqlite3: Any ORM?

Created on 30 Mar 2017  路  5Comments  路  Source: JoshuaWise/better-sqlite3

Hey,

I'm thinking about changing node-sqlite3 to better-sqlite3 but I use Sequelize and better-sqlite3 API is pretty different than node-sqlite3 API what makes it impossible.

Do you know any other ORM compatible with better-sqlite3?

Most helpful comment

Hey @jonataswalker, check out Endb, it is built using better-sqlite3.

All 5 comments

Unfortunately no. I'm personally not a fan of ORMs so I haven't made one myself. It's unlikely that sequelize would adopt better-sqlite3 because all of their APIs are async, so it would be awkward to wrap all of these synchronous functions with promises. I recommend writing a thin wrapper around queryize to construct your own active record instances.

Thanks for the answer.

Hey @jonataswalker, check out Endb, it is built using better-sqlite3.

btw. Sequelize seems to be planning to move to better-sqlite - https://github.com/sequelize/sequelize/issues/11400

@panstromek Indeed, thanks for mentioning it! We shall be moving to better-sqlite3 in the near future, with our next major release!

Was this page helpful?
0 / 5 - 0 ratings