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.


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


lua-CoatPersistent is in early stage.

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


lua-CoatPersistent source can be downloaded from Framagit.


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


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.