Closed mlevit closed 1 year ago
You should probably throw ObjectionJS in there along with it. It's widely used in the HapiJS space.
Maybe this is useful for you, I've made my own resource for ObjectionJS / Knex, mine is pretty simple and obviously could be improved but it works perfectly:
The version is not the latest because I also wanted to make my app accept multiple drivers so I've ended up with these: https://github.com/damian-pastorini/reldens-storage/tree/v0.10.0-beta.23/lib
I made an adapter that doesn't need ORM. Check out adminjs-sql. It uses Knex and fetch schema from INFORMATION_SHCEMA.
There's currently an adapter for Objection which uses Knex internally, there's also an unofficial adapter made by @wirekang for MySQL. I'll close this issue as Bookshelf's adapter is not planned to be implemented in near future.
Describe the problem feature solves Support for https://knexjs.org/ on top of Sequilize and TypeORM. https://bookshelfjs.org/ runs on top of Knex and provides ORM capabilities.
Describe the solution you'd like Ability to use models created using Knex.
Describe alternatives you've considered Nothing else.
Acceptance criteria Ability to point AdminBro at Knex models to create admin console.