Version 4 of ORM

Updated 2010-10-14 14:16:34 by dkf

ORM is an Object–Relational database Mapper, being worked on by DKF.

Currently, it's available in the half-bakery only. It lacks a number of key features, such as the ability to tell if the database has been changed under its feet.

Documentation

[You've got to be joking?!]

Example

package require tdbc::sqlite3
package require ORM

ORM::Database create crm [tdbc::sqlite3::connection new "/path/to/mydatabase.sqlite3"]

crm table order foreach o {
    puts "Order #[$o id]"
    puts "Customer: [[$o customer] firstname] [[$o customer] surname]"
    puts "Address: [[$o dispatch] house] [[$o dispatch] street]"
    puts "Address: [[$o dispatch] city], [[$o dispatch] state]"
    puts "Description:\n\t[$o description]"
}