aboutsummaryrefslogtreecommitdiffstats
path: root/util/sql.lua
Commit message (Collapse)AuthorAgeFilesLines
* util.sql: Catch errors from LuaDBI connect (Fixes #568)Kim Alvefur2016-03-211-1/+2
|
* util.sql: Remove unused arguments [luacheck]Kim Alvefur2016-03-131-2/+2
|
* util.sql: Don't break out of result retreival loopsKim Alvefur2016-03-131-7/+13
|
* util.sql: Move per-driver (currenly only PostgreSQL) query transform into ↵Kim Alvefur2016-03-131-6/+10
| | | | its own method
* util.sql: Localize unpack() in Lua 5.2 compatible wayKim Alvefur2016-02-221-1/+1
|
* util.sql: Raw query debug logging (needs to be explicitly enabled by a plugin)Kim Alvefur2016-02-211-1/+31
|
* util.sql: Export db2uri (mod_storage_sql2 command uses it) (thanks mike)Kim Alvefur2015-09-021-0/+1
|
* util.sql: Log when transactions beginKim Alvefur2015-08-301-0/+1
|
* util.*: Remove use of module() function, make all module functions local and ↵Kim Alvefur2015-02-211-13/+24
| | | | return them in a table at the end
* util.{interpolation,prosodyctl,sql}: Trim trailing whitespaceKim Alvefur2015-07-171-2/+2
|
* util.sql: Add safety check to ensure our chosen connection charset is ↵Matthew Wild2015-07-081-0/+12
| | | | actually being used (MySQL)
* util.sql: Fix log level of debug messageMatthew Wild2015-07-081-1/+1
|
* util.sql: Log debug message when connecting to databaseMatthew Wild2015-07-081-0/+1
|
* util.sql: Make set_encoding() return failure of SET NAMESMatthew Wild2015-07-081-1/+7
|
* util.sql: Return failure if set_encoding() failsMatthew Wild2015-07-081-1/+4
|
* util.sql: Use appropriate collation for the chosen character set - fixes ↵Matthew Wild2015-07-081-1/+1
| | | | MySQL silently ignoring our SET NAMES command when we use utf8mb4
* util.sql: Create table with same charset as the charset we selected for our ↵Matthew Wild2015-07-081-1/+1
| | | | connection, also use corresponding _bin collation
* util.sql: Allow onconnect callback to fail connection to the DB by returning ↵Matthew Wild2015-07-071-1/+4
| | | | false, err
* util.sql: Call onconnect, provide noop dummy if not setKim Alvefur2015-07-021-0/+4
|
* util.sql: Remove built-in engine caching. This is the wrong layer to do ↵Matthew Wild2015-06-031-8/+3
| | | | this, and unintentionally sharing connections could cause problems (e.g. when interleaving multiple queries and result fetching)
* util.sql: Expose db2uri helper functionMatthew Wild2015-06-031-1/+1
|
* util.sql: Rename some variable to match conventionsMatthew Wild2015-06-031-6/+6
|
* util.sql: Remove unused functions and unused commented codeMatthew Wild2015-05-301-87/+0
|
* mod_storage_sql2, util.sql: Set character encoding on every connectKim Alvefur2014-12-111-0/+1
|
* util.sql: Fix previous commitKim Alvefur2013-11-121-1/+1
|
* util.sql: Get character set info from the correct database.Kim Alvefur2013-11-121-1/+1
|
* util.sql: Rewrite auto increment columns to SERIAL for PostgreSQLKim Alvefur2013-11-111-3/+4
|
* util.sql: Fix to call execute on 'self' rather than 'engine' (thanks eisensheng)Matthew Wild2013-11-101-1/+1
|
* util.sql: Rewrite MEDIUMTEXT to TEXT for drivers other than MySQLKim Alvefur2013-10-301-1/+5
|
* util.sql: Check what encoding SQLite3 usesKim Alvefur2013-10-291-1/+7
|
* util.sql: Find out if MySQL supports utf8mb4 and use thatKim Alvefur2013-10-291-6/+11
|
* util.sql: Support incrementing columnsKim Alvefur2013-10-281-0/+9
|
* util.sql: Allow columns to be marked the primary keyKim Alvefur2013-10-281-0/+1
|
* util.sql: Allow creating unique indicesKim Alvefur2013-10-281-0/+3
|
* mod_storage_sql2, util.sql: Move code for setting encoding to util.sqlKim Alvefur2013-10-281-0/+11
|
* Remove all trailing whitespaceFlorian Zeitz2013-08-091-1/+1
|
* util.sql: Do lazy fetching of affected/rowcountKim Alvefur2013-07-121-3/+3
|
* Backed out changeset 3c57c2281087Kim Alvefur2013-07-121-1/+2
|
* util.sql: Don't fetch row count of result sets for queries that don't have ↵Kim Alvefur2013-07-121-2/+1
| | | | result sets
* util.sql: Set charset and collation for MySQL when creating tablesKim Alvefur2013-07-111-0/+2
|
* mod_storage_sql2 (temporary name), sql.lib, util.sql: New SQL API supporting ↵Matthew Wild2013-04-181-0/+340
cross-module connection sharing, transactions and Things - a work in progress