Commit graph

116 commits

Author SHA1 Message Date
Matthew Wild
1453a1753f mod_storage_sql: Make the 'database' value for the SQLite3 driver relative to the data path 2011-01-07 11:57:48 +00:00
Waqas Hussain
19e5efd0ca mod_storage_sql: Catch Lua errors during SQL transactions, and rollback. 2011-01-05 06:56:36 +05:00
Waqas Hussain
5e1f81a522 mod_storage_sql: Removed unnecessary initialization of a variable. 2011-01-05 06:23:58 +05:00
Waqas Hussain
c1d6450cec mod_storage_sql: Use util.json instead of util.serialization. 2010-12-27 19:43:57 +05:00
Waqas Hussain
d2117a8141 mod_storage_sql: Log an error on query failure. 2010-12-27 06:10:35 +05:00
Waqas Hussain
7320deb664 mod_storage_sql: Remove the subkey column from the Prosody table, and make the map store compatible with the key-value store. 2010-12-27 06:10:35 +05:00
Waqas Hussain
e96a87344c mod_storage_sql: Dynamically replace backquotes with double quotes when connecting to PostgreSQL... 2010-12-27 06:10:35 +05:00
Waqas Hussain
92c4204ee2 mod_storage_sql: Call commit() after all SQL statements, including SELECT, to get SQLite to drop its locks. 2010-12-27 06:10:35 +05:00
Waqas Hussain
ef3729312c mod_storage_sql: Quote identifiers in SQL with backquotes, and use the empty string for NULL, and '=' instead of 'IS' for comparison, to work with MySQL's limitations... 2010-12-27 06:10:35 +05:00
Matthew Wild
d44b3d481a mod_storage_sql: Fix a couple of bugs in "JSON" decoding 2010-12-18 03:25:31 +00:00
Waqas Hussain
082cef0837 mod_storage_sql: Use 'IS' for comparison instead of '=', to avoid SQL's NULL insanity. 2010-12-13 19:28:57 +05:00
Waqas Hussain
d401695629 mod_storage_sql: Fixed the deserialization of string-typed values. 2010-12-13 19:27:14 +05:00
Waqas Hussain
d6ce1c7e2a mod_storage_sql: Auto-initialize SQLite3 database. 2010-12-12 05:39:24 +05:00
Waqas Hussain
a1a38f2f55 mod_storage_sql: Default value for option sql = { driver = "SQLite3", database = "prosody.sqlite" }. 2010-12-12 05:38:48 +05:00
Waqas Hussain
ce0e9cdf60 mod_storage_sql: Fixed a typo. 2010-12-12 05:38:08 +05:00
Waqas Hussain
fde7a07d28 mod_storage_sql: Initial commit of new SQL data driver. 2010-12-12 05:18:36 +05:00