Diff

util/sql.lua @ 6734:592f6112563e

util.sql: Expose db2uri helper function
author Matthew Wild <mwild1@gmail.com>
date Wed, 03 Jun 2015 15:55:43 +0100
parent 6733:36e2b35397b1
child 6735:b553a30620b2
line wrap: on
line diff
--- a/util/sql.lua	Wed Jun 03 15:54:52 2015 +0100
+++ b/util/sql.lua	Wed Jun 03 15:55:43 2015 +0100
@@ -273,7 +273,7 @@
 end
 local engine_mt = { __index = engine };
 
-local function db2uri(params)
+function db2uri(params)
 	return build_url{
 		scheme = params.driver,
 		user = params.username,