changeset 0 | 54f784230511 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sphinx_django/db_script.py Thu Sep 30 11:36:30 2010 +0530 @@ -0,0 +1,17 @@ +from sqlalchemy import * + +db = create_engine('sqlite:///test.db') + +db.echo = False # Try changing this to True and see what happens + +metadata = MetaData(db) + +chapter = Table('Chapter', metadata, + Column('id', Integer, primary_key=True), + Column('name', String(40)), +) +chapter.create() + +i = chapter.insert() +i.execute(name='basic_func') +