[storm] creating table

Tim Stebbing tjstebbing at gmail.com
Mon Dec 3 23:16:45 GMT 2007


G'day Ana, if you are writing a proper app you would most likely
create your tables in SQL and import them into postgres/mysql etc.

If you are using sqlite then I've got a little Table() class I've
written to bootstrap some databases/tables for our test-suite, feel
free to use it in your application. Simply change the Table()
instances at the bottom of the file, then import the module and call
setup(), it will do the rest (see attached file) I've left in some of
the test tables as an example.

usage:

Table('databasename','tablename',*fields)

Hope this helps

-tjs

On Dec 4, 2007 6:58 AM, Ana Júlia <anajrfoliveira at gmail.com> wrote:
> i learned in the tutorial that i have to create a table at the end of the
> class. How i should  to do to create all tables in the end of the program?
>
> --
> storm mailing list
> storm at lists.canonical.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/storm
>
>



-- 
Timothy J Stebbing
-------------- next part --------------
A non-text attachment was scrubbed...
Name: _testDB.py
Type: text/x-python
Size: 4112 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/storm/attachments/20071204/89640fab/attachment.py 


More information about the storm mailing list