[SQL-CVS] r182 - in trunk/SQLObject: docs sqlobject/sqlite
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2004-08-18 02:48:47
|
Author: ianb Date: 2004-08-17 18:40:05 -0400 (Tue, 17 Aug 2004) New Revision: 182 Modified: trunk/SQLObject/docs/News.txt trunk/SQLObject/sqlobject/sqlite/sqliteconnection.py Log: Allow sqlite:/:memory: Modified: trunk/SQLObject/docs/News.txt =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/SQLObject/docs/News.txt 2004-08-17 22:37:17 UTC (rev 181) +++ trunk/SQLObject/docs/News.txt 2004-08-17 22:40:05 UTC (rev 182) @@ -61,6 +61,9 @@ =20 * SQLite booleans fixed. =20 +* You can now use ``sqlite:/:memory:`` to store the database in + memory. + SQLObject 0.5.3 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 Modified: trunk/SQLObject/sqlobject/sqlite/sqliteconnection.py =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/SQLObject/sqlobject/sqlite/sqliteconnection.py 2004-08-17 22:37= :17 UTC (rev 181) +++ trunk/SQLObject/sqlobject/sqlite/sqliteconnection.py 2004-08-17 22:40= :05 UTC (rev 182) @@ -24,7 +24,9 @@ user, password, host, path, args =3D cls._parseURI(uri) assert host is None, "SQLite can only be used locally (with a UR= I like sqlite:///file or sql:/file, not %r)" % uri assert user is None and password is None, "You may not provide u= sernames or passwords for SQLite databases" - return cls(filename=3D'/' + path, **args) + if path !=3D ':memory:': + path =3D '/' + path + return cls(filename=3Dpath, **args) connectionFromURI =3D classmethod(connectionFromURI) =20 def _setAutoCommit(self, conn, auto): |