Contact: fumanchu@aminus.org

Log in as guest/dejavu to create tickets

I think I've seen this ORM somewhere before...

root/trunk/storage/test_storeado.py

Revision 46 (checked in by fumanchu, 8 years ago)

1. Changed AdapterFromDB to take unit arg only on consume.
2. Abstracted SM's into db.StorageManagerDB base class. All stores now have save_expanded functionality.
3. Fixed storeodbc. Finally.
4. Added decimal.Decimal to adapters.
5. New precision, scale hints. db.FieldTypeAdapter? has new numeric_max_precision attribute.
6. Broke chunks of modeling.html out into managing.html.
7. New tests in zoo_fixture.

Line 
1 import os
2 from dejavu.storage import zoo_fixture
3
4 if __name__ == '__main__':
5     # Microsoft Access
6     opts = {u'Connect': "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=zoo.mdb;",
7             u'Expanded Columns': "Animal.PreviousZoos:int",
8             u'Create If Missing': True,
9             }
10
11     try:
12         zoo_fixture.setup_SM("dejavu.storage.storeado.StorageManagerADO_MSAccess", opts)
13         zoo_fixture.run_tests()
14     finally:
15         zoo_fixture.teardown()
Note: See TracBrowser for help on using the browser.