Closed gilacost closed 4 years ago
:ecto_sql
:myxql
Ecto
MySql
This is an example with myxql adapter but you may use the postgres adapter instead.
myxql
postgres
defmodule MyApp.Repo do use Ecto.Repo, otp_app: :my_app, adapter: Ecto.Adapters.MyXQL end
Changes:
:ecto_sql
and:myxql
for running queries usingEcto
in aMySql
database.Using a particular adapter for an Ecto repo
This is an example with
myxql
adapter but you may use thepostgres
adapter instead.