Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
test:
name: "test ${{ matrix.db }} ${{ matrix.pair.elixir }}/${{ matrix.pair.otp }} ${{ matrix.lint }}"
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -19,21 +19,14 @@ jobs:
- mysql:8.0
- mariadb:10.3
pair:
- elixir: 1.11.3
otp: 23.2.5
- elixir: 1.16.2
otp: 26.2.5
- elixir: 1.13
otp: 25.3
include:
- db: mysql:8.0
pair:
elixir: 1.16.2
otp: 26.2.5
elixir: 1.18.3
otp: 27.3.3
lint: lint

- db: mysql:8.0
pair:
elixir: 1.7.4
otp: 21.3.8.24
env:
MIX_ENV: test
DB: ${{ matrix.db }}
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.8.0-dev

* Require Elixir 1.13+

## v0.7.1 (2024-07-05)

* Add `:ER_CHECK_CONSTRAINT_VIOLATED` error code
Expand Down
15 changes: 8 additions & 7 deletions lib/myxql/client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ defmodule MyXQL.Client do
{nil, opts}

{true, opts} ->
Logger.warning(
"setting ssl: true on your database connection offers only limited protection, " <>
"as the server's certificate is not verified. Set \"ssl: [cacertfile: \"/path/to/cacert.crt\"]\" instead"
)

# Read ssl_opts for backwards compatibility
Keyword.pop(opts, :ssl_opts, [])
case Keyword.pop(opts, :ssl_opts) do
{nil, _opts} ->
[cacerts: :public_key.cacerts_get()] ++ default_ssl_opts()

{ssl_opts, opts} ->
Logger.warning(":ssl_opts is deprecated, pass opts to :ssl instead")
{ssl_opts, opts}
end

{ssl_opts, opts} when is_list(ssl_opts) ->
{Keyword.merge(default_ssl_opts(), ssl_opts), opts}
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
defmodule MyXQL.MixProject do
use Mix.Project

@version "0.7.1"
@version "0.8.0-dev"
@source_url "https://github.com/elixir-ecto/myxql"

def project() do
[
app: :myxql,
version: @version,
elixir: "~> 1.7",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
name: "MyXQL",
description: "MySQL 5.5+ driver for Elixir",
Expand Down
Loading