talira

MySQL driver for Elixir

open sourceApache-2.0free

MyXQL is a MySQL driver for Elixir, maintained in the elixir-ecto organisation alongside Ecto. It encodes and decodes Elixir values over MySQL's text and binary protocols, and through DBConnection supports transactions, prepared queries, streaming and pooling. It works with MySQL 5.5+, 8.0 and MariaDB 10.3, including the mysql_native_password, sha256_password and caching_sha2_password authentication plugins.

Problems it solves

  • connect to MySQL from Elixir
  • use MySQL with Ecto in a Phoenix app
  • stream large MySQL query results in Elixir

Features

  • text and binary protocol encoding of Elixir values
  • transactions, prepared queries, streaming and pooling via DBConnection
  • MySQL 5.5+, 8.0 and MariaDB 10.3
  • modern MySQL authentication plugins

Alternatives

The same job

These do what MyXQL does.

  1. Postgrex PostgreSQL driver for Elixir
  2. Redix Redis and Valkey client for Elixir

Compare MyXQL with the top 3