lua-CoatPersistent


Overview

lua-CoatPersistent is an Object-Relational Mapping for lua-Coat. It is built over the modules LuaSQL and Dado. It could support all database engine which has a driver in LuaSQL.

Another variant is built over the module lsqlite3 instead of LuaSQL.

Lineage

lua-CoatPersistent is a Lua port of Coat::Persistent , a Perl module, which is inspired by Ruby on Rails Active Record.

Status

lua-CoatPersistent is in early stage.

It's developed for Lua 5.1, 5.2 & 5.3.

Download

lua-CoatPersistent source can be downloaded from Framagit.

Installation

Two variants are available, LuaSQL or lsqlite3 based

lua-CoatPersistent is available via LuaRocks:

luarocks install lua-coatpersistent-luasql
# luarocks install lua-coatpersistent-lsqlite3

or manually, with:

make install.luasql
# make install.lsqlite3

Test

The test suite requires the module lua-TestAssertion and LuaSQL-SQLite3.

make test.luasql
# make test.lsqlite3

Copyright © 2010-2018 François Perrad

This library is licensed under the terms of the MIT/X11 license, like Lua itself.