Skip to content

Commit dc30e1b

Browse files
author
José Valim
committed
Move ecto_sql to a separate repository
1 parent e5ef524 commit dc30e1b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+62
-19572
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@
33
/doc
44
/tmp
55
erl_crash.dump
6-
/bench/results

.travis.yml

-38
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,12 @@ elixir:
33
- 1.6.1
44
otp_release:
55
- 20.2
6-
addons:
7-
apt:
8-
packages:
9-
- mysql-server-5.6
10-
- mysql-client-core-5.6
11-
- mysql-client-5.6
12-
before_install:
13-
- sudo service postgresql stop
14-
- sudo apt-get -y -qq --purge remove postgresql libpq-dev libpq5 postgresql-client-common postgresql-common
15-
- sudo rm -rf /var/lib/postgresql
16-
- sudo sh -c "echo deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main $PGVERSION >> /etc/apt/sources.list.d/pgdg.list"
17-
- wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
18-
- sudo apt-get update -qq
19-
- sudo apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::="--force-confnew" install postgresql-$PGVERSION postgresql-contrib-$PGVERSION
20-
sudo: required
21-
dist: trusty
22-
cache: apt
236
matrix:
247
include:
258
- otp_release: 18.3
269
elixir: 1.4.5
2710
- otp_release: 19.3
2811
elixir: 1.5.3
29-
env:
30-
global:
31-
- PGVERSION=9.6
32-
matrix:
33-
- ECTO_ADAPTER=none
34-
- ECTO_ADAPTER=pg PGVERSION=9.2
35-
- ECTO_ADAPTER=pg
36-
- ECTO_ADAPTER=mysql
37-
install:
38-
- mix local.hex --force
39-
- mix local.rebar --force
40-
- mix deps.get
41-
before_script:
42-
- echo "local all postgres trust" | sudo tee /etc/postgresql/$PGVERSION/main/pg_hba.conf
43-
- echo "host all postgres 127.0.0.1/32 trust" | sudo tee -a /etc/postgresql/$PGVERSION/main/pg_hba.conf
44-
- echo "host all postgrex_md5_pw 127.0.0.1/32 md5" | sudo tee -a /etc/postgresql/$PGVERSION/main/pg_hba.conf
45-
- echo "host all postgrex_cleartext_pw 127.0.0.1/32 password" | sudo tee -a /etc/postgresql/$PGVERSION/main/pg_hba.conf
46-
- sudo service postgresql restart
47-
after_script:
48-
- mix deps.get --only docs
49-
- MIX_ENV=docs mix inch.report
5012
notifications:
5113
recipients:
5214

README.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@ end
3636

3737
defmodule Sample.App do
3838
import Ecto.Query
39-
alias Sample.Weather
40-
alias Sample.Repo
39+
alias Sample.{Weather, Repo}
4140

4241
def keyword_query do
43-
query = from w in Weather,
44-
where: w.prcp > 0 or is_nil(w.prcp),
45-
select: w
42+
query =
43+
from w in Weather,
44+
where: w.prcp > 0 or is_nil(w.prcp),
45+
select: w
46+
4647
Repo.all(query)
4748
end
4849

@@ -56,11 +57,11 @@ defmodule Sample.App do
5657
end
5758
```
5859

59-
Ecto is commonly used to interact with databases, such as Postgres and MySQL via [Ecto.Adapters.SQL](http://hexdocs.pm/ecto_sql). Ecto is also commonly used to map data from any source into Elixir structs, regardless if they are backed by a database or not.
60+
Ecto is commonly used to interact with databases, such as Postgres and MySQL via [Ecto.Adapters.SQL](http://hexdocs.pm/ecto_sql) ([source code](https://github.com/elixir-ecto/ecto_sql)). Ecto is also commonly used to map data from any source into Elixir structs, regardless if they are backed by a database or not.
6061

6162
See the [getting started guide](http://hexdocs.pm/ecto/getting-started.html) and the [online documentation](http://hexdocs.pm/ecto).
6263

63-
Also checkout the ["What's new in Ecto 2.1"](http://pages.plataformatec.com.br/ebook-whats-new-in-ecto-2-0) free ebook to learn more about many features since Ecto 2.1 such as `many_to_many`, schemaless queries, concurrent testing, upsert and more. Note the book still largely applies to Ecto 3.0 as the major change in Ecto 3.0 was the removal of the outdated Ecto datetime types in favor of Elixir's Calendar types.
64+
Also checkout the ["What's new in Ecto 2.1"](http://pages.plataformatec.com.br/ebook-whats-new-in-ecto-2-0) free ebook to learn more about many features since Ecto 2.1 such as `many_to_many`, schemaless queries, concurrent testing, upsert and more. Note the book still largely applies to Ecto 3.0 as the major change in Ecto 3.0 was the split of Ecto in two repositories (`ecto` and `ecto_sql`) and the removal of the outdated Ecto datetime types in favor of Elixir's Calendar types.
6465

6566
## Usage
6667

@@ -116,7 +117,7 @@ We are currently looking for contributions to add support for other SQL database
116117
| v2.2 | Bug fixes |
117118
| v2.1 | Security patches only |
118119
| v2.0 | Unsupported from 08/2017 |
119-
| v1.1 | Security patches only |
120+
| v1.1 | Unsupported from 10/2018 |
120121
| v1.0 | Unsupported from 05/2017 |
121122

122123
## Important links

bench/README.md

-29
This file was deleted.

bench/bench_helper.exs

-7
This file was deleted.

bench/config.yml

-13
This file was deleted.

bench/scripts/macro/all_bench.exs

-50
This file was deleted.

bench/scripts/macro/insert_bench.exs

-44
This file was deleted.

bench/scripts/micro/load_bench.exs

-55
This file was deleted.

bench/scripts/micro/to_sql_bench.exs

-64
This file was deleted.

bench/support/migrations.exs

-15
This file was deleted.

0 commit comments

Comments
 (0)