File tree Expand file tree Collapse file tree 4 files changed +21
-23
lines changed Expand file tree Collapse file tree 4 files changed +21
-23
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
test :
11
11
name : " test ${{ matrix.db }} ${{ matrix.pair.elixir }}/${{ matrix.pair.otp }} ${{ matrix.lint }}"
12
- runs-on : ubuntu-20 .04
12
+ runs-on : ubuntu-22 .04
13
13
strategy :
14
14
fail-fast : false
15
15
matrix :
@@ -19,21 +19,14 @@ jobs:
19
19
- mysql:8.0
20
20
- mariadb:10.3
21
21
pair :
22
- - elixir : 1.11.3
23
- otp : 23.2.5
24
- - elixir : 1.16.2
25
- otp : 26.2.5
22
+ - elixir : 1.13
23
+ otp : 25.3
26
24
include :
27
25
- db : mysql:8.0
28
26
pair :
29
- elixir : 1.16.2
30
- otp : 26.2.5
27
+ elixir : 1.18.3
28
+ otp : 27.3.3
31
29
lint : lint
32
-
33
- - db : mysql:8.0
34
- pair :
35
- elixir : 1.7.4
36
- otp : 21.3.8.24
37
30
env :
38
31
MIX_ENV : test
39
32
DB : ${{ matrix.db }}
@@ -44,14 +37,14 @@ jobs:
44
37
- run : docker run -p 3306:3306 --volume /var/run/mysqld:/var/run/mysqld -e MYSQL_ALLOW_EMPTY_PASSWORD=1 --detach ${{matrix.db}} --innodb_log_file_size=1G
45
38
- run : until mysql --port 3306 --protocol=tcp -u root -e "SELECT @@version;"; do sleep 3; done
46
39
47
- - uses : actions/checkout@v2
40
+ - uses : actions/checkout@v4
48
41
49
42
- uses : erlef/setup-beam@v1
50
43
with :
51
44
otp-version : ${{matrix.pair.otp}}
52
45
elixir-version : ${{matrix.pair.elixir}}
53
46
54
- - uses : actions/cache@v2
47
+ - uses : actions/cache@v4
55
48
with :
56
49
path : |
57
50
deps
Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## v0.8.0-dev
4
+
5
+ * Require Elixir 1.13+
6
+
3
7
## v0.7.1 (2024-07-05)
4
8
5
9
* Add ` :ER_CHECK_CONSTRAINT_VIOLATED ` error code
Original file line number Diff line number Diff line change @@ -41,13 +41,14 @@ defmodule MyXQL.Client do
41
41
{ nil , opts }
42
42
43
43
{ true , opts } ->
44
- Logger . warning (
45
- "setting ssl: true on your database connection offers only limited protection, " <>
46
- "as the server's certificate is not verified. Set \" ssl: [cacertfile: \" /path/to/cacert.crt\" ]\" instead"
47
- )
48
-
49
- # Read ssl_opts for backwards compatibility
50
- Keyword . pop ( opts , :ssl_opts , [ ] )
44
+ case Keyword . pop ( opts , :ssl_opts ) do
45
+ { nil , _opts } ->
46
+ [ cacerts: :public_key . cacerts_get ( ) ] ++ default_ssl_opts ( )
47
+
48
+ { ssl_opts , opts } ->
49
+ Logger . warning ( ":ssl_opts is deprecated, pass opts to :ssl instead" )
50
+ { ssl_opts , opts }
51
+ end
51
52
52
53
{ ssl_opts , opts } when is_list ( ssl_opts ) ->
53
54
{ Keyword . merge ( default_ssl_opts ( ) , ssl_opts ) , opts }
Original file line number Diff line number Diff line change 1
1
defmodule MyXQL.MixProject do
2
2
use Mix.Project
3
3
4
- @ version "0.7.1 "
4
+ @ version "0.8.0-dev "
5
5
@ source_url "https://github.com/elixir-ecto/myxql"
6
6
7
7
def project ( ) do
8
8
[
9
9
app: :myxql ,
10
10
version: @ version ,
11
- elixir: "~> 1.7 " ,
11
+ elixir: "~> 1.13 " ,
12
12
start_permanent: Mix . env ( ) == :prod ,
13
13
name: "MyXQL" ,
14
14
description: "MySQL 5.5+ driver for Elixir" ,
You can’t perform that action at this time.
0 commit comments