[storm] How to set isolation level in storm
Tres Seaver
tseaver at palladion.com
Fri Jun 19 18:33:07 BST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jamu Kakar wrote:
> Hi Barry,
>
> On Thu, Jun 18, 2009 at 3:16 PM, Barry Warsaw<barry at canonical.com> wrote:
>> Maybe it would be enough to just make some attributes public, e.g.
>> SQLite.timeout and SQLite.synchronous.
>
> At first I thought, "Huh, duh, of course this is obvious", but I was
> just looking at this thread again and realized that I don't think
> something so general will work well because these kinds of settings
> are usually per-connection, not global. An alternative API that
> might work would be to provide functions that take a store as an
> argument, such as:
>
> SQLite.set_timeout(store, timeout)
> SQLite.get_timeout(store)
>
> It doesn't feel quite right to me, but I don't know why.
A store is a per-thread wrapper around a database, right? And the
database is what is created from the db_uri? So the properties are
properties of the database, rather than the store.
Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD4DBQFKO8vT+gerLs4ltQ4RAuHTAJ9ornLlMncgTBWSvF0/wrXYlHVObgCXegvH
AVEDsz8SrXiuVw5zaQ/KCA==
=f/aS
-----END PGP SIGNATURE-----
More information about the storm
mailing list