Packages
ecto_sql
3.0.0-rc.0
3.14.0
3.13.5
3.13.4
3.13.3
3.13.2
3.13.1
3.13.0
3.12.1
3.12.0
3.11.3
3.11.2
3.11.1
3.11.0
3.10.2
3.10.1
3.10.0
3.9.2
3.9.1
3.9.0
3.8.3
3.8.2
3.8.1
3.8.0
3.7.2
3.7.1
3.7.0
3.6.2
3.6.1
3.6.0
3.5.4
3.5.3
3.5.2
3.5.1
3.5.0
3.5.0-rc.1
3.5.0-rc.0
3.4.5
3.4.4
3.4.3
3.4.2
3.4.1
3.4.0
3.3.4
3.3.3
3.3.2
3.3.1
3.3.0
3.2.2
3.2.1
3.2.0
3.1.6
3.1.5
3.1.4
3.1.3
3.1.2
3.1.1
3.1.0
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
3.0.0-rc.1
3.0.0-rc.0
SQL-based adapters for Ecto and database migrations
Current section
Files
Jump to
Current section
Files
README.md
Ecto SQL
=========
[](https://travis-ci.org/elixir-ecto/ecto_sql)
Ecto SQL ([documentation](https://hexdocs.pm/ecto_sql)) provides building blocks for writing SQL adapters for Ecto. It features:
* The Ecto.Adapters.SQL module as an entry point for all SQL-based adapters
* Default implementations for Postgres (Ecto.Adapters.Postgres) and MySQL (Ecto.Adapters.MySQL)
* A test sandbox (Ecto.Adapters.SQL.Sandbox) that concurrently run database tests inside transactions
* Support for database migrations via Mix tasks
To learn more about getting started, [see the Ecto repository](https://github.com/elixir-ecto/ecto).
## Running tests
Clone the repo and fetch its dependencies:
$ git clone https://github.com/elixir-ecto/ecto_sql.git
$ cd ecto_sql
$ mix deps.get
$ mix test.all
You can also use a local Ecto checkout if desired:
$ ECTO_PATH=../ecto mix test.all
You can run tests against an specific Ecto adapter by using the `ECTO_ADAPTER` environment variable:
$ ECTO_ADAPTER=pg mix test
## Copyright and License
"Ecto" and the Ecto logo are copyright (c) 2012 Plataformatec.
Ecto source code is licensed under the [Apache 2 License](LICENSE.md).