alexdesousa / ayesql

Library for using raw SQL in Elixir
MIT License
138 stars 14 forks source link

docs: myxql example in docs #15

Closed gilacost closed 4 years ago

gilacost commented 4 years ago

Changes:

Using a particular adapter for an Ecto repo

This is an example with myxql adapter but you may use the postgres adapter instead.

defmodule MyApp.Repo do
  use Ecto.Repo,
    otp_app: :my_app,
    adapter: Ecto.Adapters.MyXQL
end