1
- [ ![ CircleCI] ( https://circleci.com/gh/Sqlite-Ecto/esqlite.svg?style=svg )] ( https://circleci.com/gh/Sqlite-Ecto/esqlite )
2
- [ ![ Coverage Status] ( https://coveralls.io/repos/github/Sqlite-Ecto/esqlite/badge.svg?branch=master )] ( https://coveralls.io/github/Sqlite-Ecto/esqlite?branch=master )
3
- [ ![ Inline docs] ( http://inch-ci.org/github/connorrigby/esqlite.svg?branch=master )] ( http://inch-ci.org/github/connorrigby/esqlite )
1
+ [ ![ CircleCI] ( https://circleci.com/gh/Sqlite-Ecto/elixir_sqlite.svg?style=svg )] ( https://circleci.com/gh/Sqlite-Ecto/elixir_sqlite )
2
+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/Sqlite-Ecto/elixir_sqlite/badge.svg?branch=master )] ( https://coveralls.io/github/Sqlite-Ecto/elixir_sqlite?branch=master )
4
3
5
4
# Sqlite
6
5
Elixir API for interacting with SQLite databases.
@@ -18,12 +17,13 @@ the command has been added to the command-queue of the thread.
18
17
19
18
# Usage
20
19
``` elixir
21
- {:ok , database} = Sqlite .open (database: " /tmp/database.sqlite3" )
22
- {:ok , statement} = Sqlite .prepare (database, " CREATE TABLE data (id int, data text)" )
23
- {:ok , _ } = Sqlite .execute (database, statement, [])
24
- {:ok , statement} = Sqlite .prepare (database, " INSERT INTO data (data) VALUES ($1)" )
25
- {:ok , _ } = Sqlite .execute (database, statement, [" neat!" ])
26
- {:ok , %Sqlite .Result {columns: [:data ], num_rows: 1 , rows: [[" neat!" ]]}} = Sqlite .query (database, " SELECT data FROM data" , [])
20
+ alias Sqlite .Connection
21
+ {:ok , database} = Connection .open (database: " /tmp/database.sqlite3" )
22
+ {:ok , statement} = Connection .prepare (database, " CREATE TABLE data (id int, data text)" )
23
+ {:ok , _ } = Connection .execute (database, statement, [])
24
+ {:ok , statement} = Connection .prepare (database, " INSERT INTO data (data) VALUES ($1)" )
25
+ {:ok , _ } = Connection .execute (database, statement, [" neat!" ])
26
+ {:ok , %Sqlite .Result {columns: [:data ], num_rows: 1 , rows: [[" neat!" ]]}} = Connection .query (database, " SELECT data FROM data" , [])
27
27
```
28
28
29
29
# Tests
@@ -34,9 +34,6 @@ backwards compatibility. By default these tests get ran by default.
34
34
``` bash
35
35
# All the tests without the bench marks.
36
36
mix test
37
-
38
- # Run only erlang tests.
39
- mix test --only esqlite_erlang
40
37
```
41
38
42
39
# Benchmarks
0 commit comments