Commit Graph

35 Commits

Author SHA1 Message Date
Tom Keffer
6d81b1125c Minor reformating 2021-02-25 16:46:05 -08:00
Tom Keffer
cb53af9b65 It's now an error to drop a non-existing column. 2021-02-25 13:14:36 -08:00
Tom Keffer
f36caea530 wee_database gets new option --drop-columns
(in addition to --add-column and --rename-column).
2021-02-25 10:58:03 -08:00
Tom Keffer
75f683c69e Merge branch 'master' of git://github.com/bellrichm/weewx into bellrichm-master 2019-11-08 07:49:55 -08:00
Rich Bell
7f2f65ef4b Do not directly instantiate Cursor, use the Connection cursor method.
It appears to clean up old Cursor objects
2019-11-07 16:55:45 -05:00
Tom Keffer
e708dab311 Allow SQLite in-memory databases. 2019-10-15 06:26:34 -07:00
vinceskahan
701f094a59 2to3 -f except -w (#315) 2018-04-09 05:55:16 -07:00
Tom Keffer
b0656b0e1d Fixed bug that crashes the program if a Sqlite permission error occurs. 2018-02-09 16:05:05 -08:00
Tom Keffer
2a2651cfa4 The weedb Cursor object can now be used in a "with" clause. 2017-02-05 18:16:15 -08:00
Tom Keffer
a533ad2307 Ported the weedb sqlite driver to the new exception hierarchy. 2017-02-05 14:34:53 -08:00
Tom Keffer
a8f01f7bed Suppressed lots of eclipse "Unused variable" warnings. 2016-03-11 12:02:26 -08:00
Tom Keffer
00246228ad Skipped tests of journal_mode for older versions of sqlite3, which did
not have it.
2016-01-17 10:19:30 -08:00
Tom Keffer
831ab050ce Corrected setting for SQLITE_ROOT 2015-06-12 15:10:16 -07:00
Tom Keffer
132d0786db Allow backwards compatibility with either keyword 'root' or
'SQLITE_ROOT'
2015-06-12 07:53:49 -07:00
Tom Keffer
c1a4c5f7cb First attempt to refactor database configuration 2015-06-12 07:30:00 -07:00
Tom Keffer
ee84e47204 Added the ability to query for database pragmas and other db-specific
variables.
2015-04-14 16:22:30 -07:00
Tom Keffer
91e9864a98 Went through all the Python code, deleting all SVN $Id$ tags.
Standardized copyright notices, except for those I don't own.
2015-02-21 09:44:19 -08:00
Tom Keffer
e08f97305d Changes in the weedb exception model to bring it closer to the MySQL exception model. Introduces exception weedb.IntegrityError (duplicate key) and weedb.ProgrammingError (non-existent table). 2015-02-05 02:19:56 +00:00
Tom Keffer
1738d2ffed Reintegrate from the v3 branch.
V3.0.0b1
2014-11-29 18:15:24 +00:00
Tom Keffer
204194a38b Used decorator to convert sqlite and mysql exceptions into weedb exceptions.
Introduced exception type weedb.DatabaseError as the base class of all weedb exceptions.
Filled out the "not implemented" functions in the abstract base classes Connection.
2014-10-24 18:10:29 +00:00
Tom Keffer
a63dc26833 Added an (undocumented) ability to set pragmas on a sqlite connection. 2014-09-28 15:26:55 +00:00
Tom Keffer
c668240cbc Fixed doc string for sqlite.Connection 2014-09-28 15:11:53 +00:00
Tom Keffer
16003e04e2 Sqlite connections can now explicitly specify a timeout and isolation_level. 2014-02-13 13:36:16 +00:00
Tom Keffer
8b6fe69382 genSchemaOf supports column type of CHAR 2014-02-03 17:09:17 +00:00
Tom Keffer
f708f89d0c Got simulator test running again. 2014-02-03 15:15:42 +00:00
Tom Keffer
d96c6a2b53 Added an option --string-check and --fix to the utility wee_config_database to fix embedded strings found in the sqlite archive database.
Documented it.
2014-01-30 18:37:02 +00:00
Tom Keffer
74633fb2e4 Added genSchemaOf() function to weedb. 2014-01-29 17:53:48 +00:00
Tom Keffer
d5d55e9562 Fixed bug in weedb.sqlite3.Cursor.execute(). Value was not being returned. 2013-01-17 16:08:49 +00:00
Tom Keffer
f45bc628f1 Now bad SELECT statements raise weedb.OperationalError 2013-01-15 18:00:36 +00:00
Tom Keffer
cfcfb31615 Fixed error where the MySQL implementation of weedb did not raise an exception if asked for the columns of a non-existent table.
Fixed test suites.
2012-11-06 22:25:38 +00:00
Tom Keffer
f90118e145 Started on weedb test suites. 2012-10-17 02:27:46 +00:00
Tom Keffer
ca58e15cf7 Renamed db to weedb 2012-10-16 22:53:11 +00:00
Tom Keffer
6f3844c32e Deleting package weedb 2012-09-27 16:13:39 +00:00
Tom Keffer
1bfb339786 Snapshot 2012-09-27 16:02:29 +00:00
Tom Keffer
096876a205 Created new package 'weedb' 2012-09-27 12:32:50 +00:00