Skip to content
This repository was archived by the owner on Dec 17, 2018. It is now read-only.

Commit 7389d5b

Browse files
committed
update readme
1 parent ef01a8e commit 7389d5b

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

Diff for: README.md

+9-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
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)
43

54
# Sqlite
65
Elixir API for interacting with SQLite databases.
@@ -18,12 +17,13 @@ the command has been added to the command-queue of the thread.
1817

1918
# Usage
2019
```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", [])
2727
```
2828

2929
# Tests
@@ -34,9 +34,6 @@ backwards compatibility. By default these tests get ran by default.
3434
```bash
3535
# All the tests without the bench marks.
3636
mix test
37-
38-
# Run only erlang tests.
39-
mix test --only esqlite_erlang
4037
```
4138

4239
# Benchmarks

0 commit comments

Comments
 (0)