Comparison

plugins/mod_storage_sql.lua @ 12824:735bf601b78d

Merge 0.12->trunk
author Kim Alvefur <zash@zash.se>
date Thu, 29 Dec 2022 18:28:50 +0100
parent 12723:4cfd09343947
parent 12823:dd6c35325241
child 12830:0c3184378032
comparison
equal deleted inserted replaced
12822:6b43bf85032b 12824:735bf601b78d
829 port = params.port; 829 port = params.port;
830 }; 830 };
831 end 831 end
832 832
833 function module.load() 833 function module.load()
834 if prosody.process_type == "prosodyctl" then return; end
835 local engines = module:shared("/*/sql/connections"); 834 local engines = module:shared("/*/sql/connections");
836 local params = normalize_params(module:get_option("sql", default_params)); 835 local params = normalize_params(module:get_option("sql", default_params));
837 local db_uri = sql.db2uri(params); 836 local db_uri = sql.db2uri(params);
838 engine = engines[db_uri]; 837 engine = engines[db_uri];
839 if not engine then 838 if not engine then