Log

util/sql.lua @ 9078:9e339197c724

description author age
vairious: Add annotation when an empty environment is set [luacheck] Kim Alvefur 2018-02-28
util: Ignore some Lua 5.1 vs 5.2 compat things [luacheck] Kim Alvefur 2017-11-10
util: Various minor changes to please [luacheck] Kim Alvefur 2017-11-10
util.sql: Discard useless substitution count from string.gsub in SQL debug logs Kim Alvefur 2017-11-08
util.sql: Return an error message when a SQL commit fails (LuaDBI doesn't) (Thanks Ge0rG) Kim Alvefur 2017-11-07
util.sql: Don't log at error level if a transaction failed and was retried ok Matthew Wild 2017-10-04
util.sql: Greedily read all rows so we can close queries early (fixes #391) Matthew Wild 2017-08-04
util.sql: Produce more SQL-standard-like debug messages Kim Alvefur 2017-04-13
util.sql: Strip indentation from queries for debug logging Kim Alvefur 2017-04-12
util.sql: Apply quote transform in engine:execute so it is applied to eg encoding checks in mod_storage_sql (thanks Martin) Kim Alvefur 2017-04-12
SQL: Use standard quotes for columns and other identifiers, rewrite to grave accents for MySQL only (fixes #885) Kim Alvefur 2017-04-10
util.sql: remove unused one-letter loop variables [luacheck] Anton Shestakov 2016-07-23
util.sql: Import type too (fix global access) Kim Alvefur 2016-05-22
util.sql: Import pcall (fixes #677) Matthew Wild 2016-05-22
util.sql: Log errors in transaction to error level with traceback but return only error message (fixes #464) Kim Alvefur 2016-03-25
util.sql: Charset should be innocent until proven guilty (initialize charset_ok to true), fixes bug introduced in 187ba2e9c012 Matthew Wild 2016-03-23
util.sql: Catch errors from LuaDBI connect (Fixes #568) Kim Alvefur 2016-03-21
util.sql: Remove unused arguments [luacheck] Kim Alvefur 2016-03-13
util.sql: Don't break out of result retreival loops Kim Alvefur 2016-03-13
util.sql: Move per-driver (currenly only PostgreSQL) query transform into its own method Kim Alvefur 2016-03-13
util.sql: Localize unpack() in Lua 5.2 compatible way Kim Alvefur 2016-02-22
util.sql: Raw query debug logging (needs to be explicitly enabled by a plugin) Kim Alvefur 2016-02-21
util.sql: Export db2uri (mod_storage_sql2 command uses it) (thanks mike) Kim Alvefur 2015-09-02
util.sql: Log when transactions begin Kim Alvefur 2015-08-30
util.*: Remove use of module() function, make all module functions local and return them in a table at the end Kim Alvefur 2015-02-21
util.{interpolation,prosodyctl,sql}: Trim trailing whitespace Kim Alvefur 2015-07-17
util.sql: Add safety check to ensure our chosen connection charset is actually being used (MySQL) Matthew Wild 2015-07-08
util.sql: Fix log level of debug message Matthew Wild 2015-07-08
util.sql: Log debug message when connecting to database Matthew Wild 2015-07-08
util.sql: Make set_encoding() return failure of SET NAMES Matthew Wild 2015-07-08
util.sql: Return failure if set_encoding() fails Matthew Wild 2015-07-08
util.sql: Use appropriate collation for the chosen character set - fixes MySQL silently ignoring our SET NAMES command when we use utf8mb4 Matthew Wild 2015-07-08
util.sql: Create table with same charset as the charset we selected for our connection, also use corresponding _bin collation Matthew Wild 2015-07-08
util.sql: Allow onconnect callback to fail connection to the DB by returning false, err Matthew Wild 2015-07-07
util.sql: Call onconnect, provide noop dummy if not set Kim Alvefur 2015-07-02
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) Matthew Wild 2015-06-03
util.sql: Expose db2uri helper function Matthew Wild 2015-06-03
util.sql: Rename some variable to match conventions Matthew Wild 2015-06-03
util.sql: Remove unused functions and unused commented code Matthew Wild 2015-05-30
mod_storage_sql2, util.sql: Set character encoding on every connect Kim Alvefur 2014-12-11
util.sql: Fix previous commit Kim Alvefur 2013-11-12
util.sql: Get character set info from the correct database. Kim Alvefur 2013-11-12
util.sql: Rewrite auto increment columns to SERIAL for PostgreSQL Kim Alvefur 2013-11-11
util.sql: Fix to call execute on 'self' rather than 'engine' (thanks eisensheng) Matthew Wild 2013-11-10
util.sql: Rewrite MEDIUMTEXT to TEXT for drivers other than MySQL Kim Alvefur 2013-10-30
util.sql: Check what encoding SQLite3 uses Kim Alvefur 2013-10-29
util.sql: Find out if MySQL supports utf8mb4 and use that Kim Alvefur 2013-10-29
util.sql: Support incrementing columns Kim Alvefur 2013-10-28
util.sql: Allow columns to be marked the primary key Kim Alvefur 2013-10-28
util.sql: Allow creating unique indices Kim Alvefur 2013-10-28
mod_storage_sql2, util.sql: Move code for setting encoding to util.sql Kim Alvefur 2013-10-28
Remove all trailing whitespace Florian Zeitz 2013-08-09
util.sql: Do lazy fetching of affected/rowcount Kim Alvefur 2013-07-12
Backed out changeset 3c57c2281087 Kim Alvefur 2013-07-12
util.sql: Don't fetch row count of result sets for queries that don't have result sets Kim Alvefur 2013-07-12
util.sql: Set charset and collation for MySQL when creating tables Kim Alvefur 2013-07-11
mod_storage_sql2 (temporary name), sql.lib, util.sql: New SQL API supporting cross-module connection sharing, transactions and Things - a work in progress Matthew Wild 2013-04-18