NAME
ObjectDB::Meta - meta object
SYNOPSIS
ObjectDB::Meta->new(
table
=>
'book'
,
columns
=> [
qw/id author_id title/
],
primary_key
=>
'id'
,
auto_increment
=>
'id'
,
relationships
=> {
author
=> {
type =
'many to one'
,
class
=>
'MyAuthor'
,
map
=> {
author_id
=>
'id'
}
}
}
);
DESCRIPTION
Meta object is used internally for describing the table schema.
Inheritance
The key feature is inheritance. You can inherit schema, add or remove columns, specify new relationships and so on.