[Schevo-devel] How do you get field-specs in declaration order?

Patrick K. O'Brien pobrien at orbtech.com
Thu Dec 15 08:56:29 EST 2005


Tom Locke wrote:
> 
>> Both are supported.  Initial values always get created, sample values
>> only when you ask for them.  So use initial values to create things that
>> you *always* want to exist within a new database.  Often you'll want to
>> keep user from modifying those values as well, so then you can hide the
>> create/update/delete transactions from them.  Make sense?
>>  
>>
> So _initial values are created on "evo db create". What if the db file
> already exists?

It only happens on a new file.

> What if there's a key conflict?

Any conflict will result in a rollback of the initialization transaction
and you'll get a new database with no intial values.

> And _sample get created when you call some function?

Yes.  Note also that the initial and sample transactions do a simple
depth-first dependency recursion to populate parents before children
that works for most schemas but might not be able to handle circular
references (and perhaps other edge cases) without a bit of help.

-- 
Patrick K. O'Brien
Orbtech       http://www.orbtech.com
Schevo        http://www.schevo.org




More information about the Schevo-devel mailing list