[Nitro] og regarding legacy apps table hints

Robert Wagner robbie.wilhelm at gmail.com
Tue Aug 16 11:49:28 EDT 2005


hi,
to be a bit more specific about the way to describe tables in an
external file. how do you like that way:

class Person
      look_at_file true
end

person.ini:

; autogenerated file - generator: generator.php
[table]
name=persons
sequence=persons_id_seq

[keys]
id=1

[fields]
; 1-number, 2-string, 3-date, 4-datetime, 5-blob
id=1
title=2
fname=2
lname=2
address1=2
address2=2
country=2
postalcode=2
city=2
phone=2
fax=2
mobile=2
email=2
web=2
company_id=1
creation=4
lastedit=4
version=1


[autodate]
created=creation
modified=lastedit

[autoinc]
version=1

[relations]
has_many=notes
belongs_to=company
company.fkey=company_id
notes.class=note


ciao,
  -robert




More information about the Nitro-general mailing list