ostinelli / gin

A LUA fast, low-latency, low-memory footprint, web JSON-API framework with Test Driven Development helpers and patterns.
MIT License
238 stars 35 forks source link

ORM by itself? #33

Closed andreasbhansen closed 8 years ago

andreasbhansen commented 8 years ago

Hi,

So for the time being, I'm working with some Lua scripts requiring database access. I don't need the entire Gin framework, only the Models/ORM as it seems far superior to anything related I've come across so far.

Is there a way to use it without OpenResty and the rest of the Gin (API related) framework?

jtarchie commented 8 years ago

I don't think so. I believe it relies on the OpenResty database drivers.

ostinelli commented 8 years ago

Hi, as per @jtarchie 's response I had to rely on internal OpenResty drivers so no additional work has been provided to make the ORMs and migrations work as standalones.

If needed, it is possible to extract the ORM and migration engines from here: https://github.com/ostinelli/gin/tree/master/gin/db