Dado
Database Facilities for LuaSQL

Overview

Dado is a package that offers some facilities implemented over LuaSQL connection objects. Its main goals are:

  • better error messages,
  • iterators to access the result set and
  • more homogeneity in some commonly used database operations.

Dado is free software and uses the same license as Lua 5.1.

Object Abstraction

The package also contains an object module which provides a way to define classes and objects to represent table rows with a minimun effort. It does not imposes a class system, it just suggests a simple one with simple inheritance:

  • objects with automatic retrieval of database attributes
  • different methods for object creation and for class definition

The default mechanism uses classes to represent database tables and instances to represent database table rows. However it is easy to define attributes that are not related to database columns, or classes that are not related to only one database table.

Status

Current version is 1.0. It was developed for Lua 5.1.

Download

Dado can be downloaded from its LuaForge page.

Installation

Dado is a Lua 5.1 set of modules which should be installed in your LUA_PATH. The distribution provides a Makefile for *nix which should be able to install the package properly.

Manual

There is no reference manual. The API is documented with LuaDoc.

History

  • [20/apr/2008] Version 1.0 released

Credits

Dado was designed by Tomás Guisasola and Eduardo Quintão with many priceless contributions from Pedro Maia, Roberto Ierusalimschy, André Carregal, Raphael Pithan and Maurício Bonfim.

Dado was developed for PUC-Rio which holds its copyright. It was implemented by Tomás Guisasola.

Contact us

For more information please contact us. Comments are welcome!

Valid XHTML 1.0!

$Id: index.html,v 1.6 2008/04/20 21:39:57 tomas Exp $