Patrick K. O'Brien
2006-11-21 15:39:51 UTC
I'm still working out the kinks, but the following might interest some
of you:
C:\IronPython>schevo db create --app=schevo.example.todo -p todo.db
Schevo 3.0b3dev-r2694 :: Database Activities :: Create Database
Creating new database...
Evolving database...
Database is already at latest version.
Importing icons...
Populating with sample data...
Packing the database...
Database version is now at 1.
Database created.
C:\IronPython>ipy.exe -X:TabCompletion -X:ColorfulConsole
IronPython 1.0 (1.0.61005.1977) on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
...
Female
Male
Unknown
Can you say Schevo.NET? :-)
of you:
C:\IronPython>schevo db create --app=schevo.example.todo -p todo.db
Schevo 3.0b3dev-r2694 :: Database Activities :: Create Database
Creating new database...
Evolving database...
Database is already at latest version.
Importing icons...
Populating with sample data...
Packing the database...
Database version is now at 1.
Database created.
C:\IronPython>ipy.exe -X:TabCompletion -X:ColorfulConsole
IronPython 1.0 (1.0.61005.1977) on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
import schevo.database
Using Python base classes for persistence.db = schevo.database.open('todo.db')
... print gender.name...
Female
Male
Unknown
person = db.execute(db.Person.t.create(name='John Doe',
gender=db.Gender.findone(code='M')))person.name
'John Doe'person.gender
<Gender entity oid:2 rev:0>person.gender.name
'Male'Can you say Schevo.NET? :-)
--
Patrick K. O'Brien
Orbtech http://www.orbtech.com
Schevo http://www.schevo.org
Louie http://www.pylouie.org
Patrick K. O'Brien
Orbtech http://www.orbtech.com
Schevo http://www.schevo.org
Louie http://www.pylouie.org