Lucid: Instructions for use outside of Adonis

Created on 3 Mar 2017  路  4Comments  路  Source: adonisjs/lucid

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.

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

All 4 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexhenriquepv picture alexhenriquepv  路  3Comments

hectorgrecco picture hectorgrecco  路  3Comments

enniel picture enniel  路  7Comments

SAGV picture SAGV  路  4Comments

HigoRibeiro picture HigoRibeiro  路  3Comments