util/sql.lua
Sat, 22 Jul 2023 14:55:27 +0200 Kim Alvefur util.sql: Remove unused String() and Integer() functions
Fri, 17 Mar 2023 16:23:16 +0100 Kim Alvefur util: Prefix module imports with prosody namespace
Mon, 30 Jan 2023 00:38:26 +0100 Kim Alvefur mod_storage_sql: Record connection to database as module status
Mon, 23 Dec 2019 21:13:27 +0100 Kim Alvefur util.sql: Handle failure to detect connection encoding
Sat, 28 Sep 2019 18:24:28 +0200 Kim Alvefur util.sql: Preserve 3rd and 4th return values from transaction (fixes #1434) (thanks mrdoctorwho)
Tue, 30 Jul 2019 02:23:44 +0200 Kim Alvefur util.sql: Remove tostring call from logging
Thu, 30 May 2019 23:50:28 +0200 Kim Alvefur util.sql: Ignore if tables and indices already exist on creation (fixes #1064) 0.11
Sun, 11 Nov 2018 02:26:40 +0100 Kim Alvefur util.sql: Switch from hacky multi-arg xpcall implementation to util.xpcall 0.11
Wed, 28 Feb 2018 20:06:26 +0100 Kim Alvefur vairious: Add annotation when an empty environment is set [luacheck]
Fri, 10 Nov 2017 17:47:11 +0100 Kim Alvefur util: Ignore some Lua 5.1 vs 5.2 compat things [luacheck]
Fri, 10 Nov 2017 05:42:32 +0100 Kim Alvefur util: Various minor changes to please [luacheck]
Wed, 08 Nov 2017 10:45:58 +0100 Kim Alvefur util.sql: Discard useless substitution count from string.gsub in SQL debug logs
Tue, 07 Nov 2017 09:26:48 +0100 Kim Alvefur util.sql: Return an error message when a SQL commit fails (LuaDBI doesn't) (Thanks Ge0rG)
Wed, 04 Oct 2017 10:16:42 +0100 Matthew Wild util.sql: Don't log at error level if a transaction failed and was retried ok
Fri, 04 Aug 2017 18:52:15 +0100 Matthew Wild util.sql: Greedily read all rows so we can close queries early (fixes #391)
Thu, 13 Apr 2017 22:37:35 +0200 Kim Alvefur util.sql: Produce more SQL-standard-like debug messages
Wed, 12 Apr 2017 18:57:40 +0200 Kim Alvefur util.sql: Strip indentation from queries for debug logging
Wed, 12 Apr 2017 17:26:44 +0200 Kim Alvefur util.sql: Apply quote transform in engine:execute so it is applied to eg encoding checks in mod_storage_sql (thanks Martin)
Mon, 10 Apr 2017 23:13:39 +0200 Kim Alvefur SQL: Use standard quotes for columns and other identifiers, rewrite to grave accents for MySQL only (fixes #885)
Sat, 23 Jul 2016 18:22:05 +0800 Anton Shestakov util.sql: remove unused one-letter loop variables [luacheck]
Sun, 22 May 2016 14:37:52 +0200 Kim Alvefur util.sql: Import type too (fix global access)
Sun, 22 May 2016 02:16:11 +0100 Matthew Wild util.sql: Import pcall (fixes #677)
Fri, 25 Mar 2016 16:09:34 +0100 Kim Alvefur util.sql: Log errors in transaction to error level with traceback but return only error message (fixes #464)
Wed, 23 Mar 2016 12:17:28 +0000 Matthew Wild util.sql: Charset should be innocent until proven guilty (initialize charset_ok to true), fixes bug introduced in 187ba2e9c012
Mon, 21 Mar 2016 09:50:52 +0100 Kim Alvefur util.sql: Catch errors from LuaDBI connect (Fixes #568)
Sun, 13 Mar 2016 18:35:00 +0100 Kim Alvefur util.sql: Remove unused arguments [luacheck]
Sun, 13 Mar 2016 18:31:53 +0100 Kim Alvefur util.sql: Don't break out of result retreival loops
Sun, 13 Mar 2016 17:38:49 +0100 Kim Alvefur util.sql: Move per-driver (currenly only PostgreSQL) query transform into its own method
Mon, 22 Feb 2016 17:30:12 +0100 Kim Alvefur util.sql: Localize unpack() in Lua 5.2 compatible way
Sun, 21 Feb 2016 19:25:01 +0100 Kim Alvefur util.sql: Raw query debug logging (needs to be explicitly enabled by a plugin)
Wed, 02 Sep 2015 14:14:22 +0200 Kim Alvefur util.sql: Export db2uri (mod_storage_sql2 command uses it) (thanks mike)
Sun, 30 Aug 2015 13:45:36 +0200 Kim Alvefur util.sql: Log when transactions begin
Sat, 21 Feb 2015 10:36:37 +0100 Kim Alvefur util.*: Remove use of module() function, make all module functions local and return them in a table at the end
Fri, 17 Jul 2015 12:43:04 +0200 Kim Alvefur util.{interpolation,prosodyctl,sql}: Trim trailing whitespace
Wed, 08 Jul 2015 15:25:42 +0100 Matthew Wild util.sql: Add safety check to ensure our chosen connection charset is actually being used (MySQL)
Wed, 08 Jul 2015 15:16:17 +0100 Matthew Wild util.sql: Fix log level of debug message
Wed, 08 Jul 2015 15:15:32 +0100 Matthew Wild util.sql: Log debug message when connecting to database
Wed, 08 Jul 2015 15:14:24 +0100 Matthew Wild util.sql: Make set_encoding() return failure of SET NAMES
Wed, 08 Jul 2015 15:10:25 +0100 Matthew Wild util.sql: Return failure if set_encoding() fails
Wed, 08 Jul 2015 15:06:20 +0100 Matthew Wild util.sql: Use appropriate collation for the chosen character set - fixes MySQL silently ignoring our SET NAMES command when we use utf8mb4
Wed, 08 Jul 2015 15:04:23 +0100 Matthew Wild util.sql: Create table with same charset as the charset we selected for our connection, also use corresponding _bin collation
Tue, 07 Jul 2015 17:43:14 +0100 Matthew Wild util.sql: Allow onconnect callback to fail connection to the DB by returning false, err
Thu, 02 Jul 2015 22:32:44 +0200 Kim Alvefur util.sql: Call onconnect, provide noop dummy if not set
Wed, 03 Jun 2015 15:57:46 +0100 Matthew Wild util.sql: Remove built-in engine caching. This is the wrong layer to do this, and unintentionally sharing connections could cause problems (e.g. when interleaving multiple queries and result fetching)
Wed, 03 Jun 2015 15:55:43 +0100 Matthew Wild util.sql: Expose db2uri helper function
Wed, 03 Jun 2015 15:54:52 +0100 Matthew Wild util.sql: Rename some variable to match conventions
Sat, 30 May 2015 22:23:19 +0100 Matthew Wild util.sql: Remove unused functions and unused commented code
Thu, 11 Dec 2014 09:18:39 +0100 Kim Alvefur mod_storage_sql2, util.sql: Set character encoding on every connect
Tue, 12 Nov 2013 11:38:52 +0100 Kim Alvefur util.sql: Fix previous commit
Tue, 12 Nov 2013 11:13:45 +0100 Kim Alvefur util.sql: Get character set info from the correct database.
Mon, 11 Nov 2013 23:09:18 +0100 Kim Alvefur util.sql: Rewrite auto increment columns to SERIAL for PostgreSQL
Sun, 10 Nov 2013 23:10:27 +0000 Matthew Wild util.sql: Fix to call execute on 'self' rather than 'engine' (thanks eisensheng)
Wed, 30 Oct 2013 10:24:35 +0100 Kim Alvefur util.sql: Rewrite MEDIUMTEXT to TEXT for drivers other than MySQL
Tue, 29 Oct 2013 11:43:49 +0100 Kim Alvefur util.sql: Check what encoding SQLite3 uses
Tue, 29 Oct 2013 11:42:55 +0100 Kim Alvefur util.sql: Find out if MySQL supports utf8mb4 and use that
Mon, 28 Oct 2013 23:20:25 +0100 Kim Alvefur util.sql: Support incrementing columns
Mon, 28 Oct 2013 23:19:47 +0100 Kim Alvefur util.sql: Allow columns to be marked the primary key
Mon, 28 Oct 2013 23:18:54 +0100 Kim Alvefur util.sql: Allow creating unique indices
Mon, 28 Oct 2013 22:07:16 +0100 Kim Alvefur mod_storage_sql2, util.sql: Move code for setting encoding to util.sql
Fri, 09 Aug 2013 17:48:21 +0200 Florian Zeitz Remove all trailing whitespace
less more (0) -60 tip