24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-16 22:05:29 +02:00

Update p1_pgsql and mysql to support Unix Domain Socket (#3716)

This commit is contained in:
Badlop 2024-05-13 12:38:19 +02:00
parent d04f92d44e
commit 1b81af00b2
3 changed files with 8 additions and 6 deletions

View File

@ -174,8 +174,8 @@ defmodule Ejabberd.MixProject do
{if_version_below(~c"27", true), {:jiffy, "~> 1.1.1"}},
{if_version_below(~c"22", true), {:lager, "~> 3.9.1"}},
{config(:lua), {:luerl, "~> 1.2.0"}},
{config(:mysql), {:p1_mysql, ">= 1.0.23" }},
{config(:pgsql), {:p1_pgsql, "~> 1.1"}},
{config(:mysql), {:p1_mysql, git: "https://github.com/processone/p1_mysql" }},
{config(:pgsql), {:p1_pgsql, git: "https://github.com/processone/p1_pgsql"}},
{config(:sqlite), {:sqlite3, "~> 1.1"}},
{config(:stun), {:stun, "~> 1.0"}}], do:
dep

View File

@ -58,10 +58,10 @@
{mqtree, "~> 1.0.16", {git, "https://github.com/processone/mqtree", {tag, "1.0.16"}}},
{p1_acme, ".*", {git, "https://github.com/processone/p1_acme", {branch, "master"}}},
{if_var_true, mysql,
{p1_mysql, ".*", {git, "https://github.com/processone/p1_mysql", {tag, "1.0.23"}}}},
{p1_mysql, ".*", {git, "https://github.com/processone/p1_mysql", {branch, "master"}}}},
{p1_oauth2, "~> 0.6.14", {git, "https://github.com/processone/p1_oauth2", {tag, "0.6.14"}}},
{if_var_true, pgsql,
{p1_pgsql, "~> 1.1.15", {git, "https://github.com/processone/p1_pgsql", {tag, "1.1.25"}}}},
{p1_pgsql, ".*", {git, "https://github.com/processone/p1_pgsql", {branch, "master"}}}},
{p1_utils, "~> 1.0.25", {git, "https://github.com/processone/p1_utils", {tag, "1.0.25"}}},
{pkix, ".*", {git, "https://github.com/processone/pkix", {branch, "master"}}},
{if_var_true, sqlite,

View File

@ -1378,11 +1378,13 @@ doc() ->
"The default value is the value defined in _`queue_type`_ "
"or 'ram' if the latter is not set.")}},
{sql_server,
#{value => ?T("Host"),
note => "improved in 23.04",
#{value => "Host | IP Address | ODBC Connection String | Unix Socket Path",
note => "improved in 24.xx",
desc =>
?T("The hostname or IP address of the SQL server. For _`sql_type`_ "
"'mssql' or 'odbc' this can also be an ODBC connection string. "
"When _`sql_type`_ is 'mysql' or 'pgsql', this can be the path to "
"a unix domain socket expressed like: \"unix:/path/to/socket\"."
"The default value is 'localhost'.")}},
{sql_ssl,
#{value => "true | false",