Hi, I'm just wondering if it's possible to use Lucid outside of Adonis, with Express for example, and if so, can we please get some documentation for setting this up? Node ORMs are notoriously lacking and I think the greater community could benefit for using Lucid.
Thanks.
Its a great idea. Please also support cockroachDB https://www.cockroachlabs.com/
Hey @niallobrien !
That shouldn't be that difficult!
May you try to install adonis-lucid and then
const Model = require('adonis-lucid/src/Lucid/Model')
class MyModel extends Model {
// ...
}
@RomainLanz could you please share a complete example showing database connection, query, transaction and migrations. I want to use lucid with postgreSQL without adonis.
No plans for now, but Lucid is written in a way that you can use it outside of AdonisJs too. It needs little of more work, which I am not ready for right now.
But I will do it once done with AdonisJs work
Most helpful comment
No plans for now, but Lucid is written in a way that you can use it outside of AdonisJs too. It needs little of more work, which I am not ready for right now.
But I will do it once done with AdonisJs work