Python Desktop Server Weblog 7.4.2005

a picture of myself

Münsterland.org

2005-04-07

ActiveStorage now has a SQLite backend

Thanks to Yaroslav Samchu, asfPY now has a SQLite backend. He sent in a first take at this backend and I completed the code so that it now runs with only a few glitches left. One glitch is the support for autoincrementing columns - this isn't done in an atomic way due to the fact that the pysqlite interface (at lest the 1.something series) doesn't support atomic update and fetch on those columns and so I had to do a select max() and a combined insert.

The other glitch is support for data types. SQLite has only it's flexible data type handling and due to that currently the support for long integers is broken - they are damaged on store and you never get back a long integer on fetch. Due to this the test cases regarding long integers don't work.

Otherwise it's running fine. It's as slow as the other backends, though. There is definitely optimization needed in asfPY. But hey, it's just some 0.something version Smiley

This post references topics: python
posted at 16:09:04    #
April 2005
MoTuWeThFrSaSu
     1 2 3
4 5 6 7 8 910
11121314151617
18192021222324
252627282930 
Mar
2005
 Dec
2005

This is the Python Desktop Server weblog.


(Donations will be used by the author to buy stuff, fullfill selfish wishes or do other silly recreational things. You have been warned.).
The PyDS is
OSI Certified Open Source Software

Python Powered

XML-Image

© 2005-2007, Georg Bauer