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

Commit 8d9cbe9

Browse files
committed
Fix typespecs.
1 parent c0a7799 commit 8d9cbe9

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
[![CircleCI](https://circleci.com/gh/ConnorRigby/esqlite.svg?style=svg)](https://circleci.com/gh/ConnorRigby/esqlite)
2-
[![Coverage Status](https://coveralls.io/repos/github/ConnorRigby/esqlite/badge.svg?branch=master)](https://coveralls.io/github/ConnorRigby/esqlite?branch=master)
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)
33
[![Inline docs](http://inch-ci.org/github/connorrigby/esqlite.svg?branch=master)](http://inch-ci.org/github/connorrigby/esqlite)
4-
[![Deps Status](https://beta.hexfaktor.org/badge/all/github/ConnorRigby/esqlite.svg)](https://beta.hexfaktor.org/github/ConnorRigby/esqlite)
4+
[![Deps Status](https://beta.hexfaktor.org/badge/all/github/Sqlite-Ecto/esqlite.svg)](https://beta.hexfaktor.org/github/Sqlite-Ecto/esqlite)
55

66
# Sqlite
77
Elixir API for interacting with SQLite databases.
@@ -47,8 +47,6 @@ It does not get ran with the test suite since it can take quite a while.
4747
```bash
4848
# run all the tests and the benchmarks.
4949
mix test --include bench
50-
# run just the benchmark with
51-
mix test bench --include bench
5250
```
5351

5452
# Thanks and License

lib/esqlite3/esqlite3_nif.ex

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ defmodule Esqlite3Nif do
5252
@spec prepare(connection, reference, pid, sql) :: :ok | error_tup2
5353
def prepare(_db, _ref, _dest, _sql), do: :erlang.nif_error(:nif_library_not_loaded)
5454

55-
@spec multi_step(connection, statement, pos_integer, reference, pid) :: {:ok, [tuple]} | error_tup2
55+
@spec multi_step(connection, statement, pos_integer, reference, pid) :: :ok | error_tup2
5656
def multi_step(_db, _stmt, _chunk_size, _ref, _dest), do: :erlang.nif_error(:nif_library_not_loaded)
5757

5858
@doc "Reset a prepared statement."
@@ -94,15 +94,11 @@ defmodule Esqlite3Nif do
9494

9595
@doc false
9696
def load_nif do
97-
require Logger
98-
nif_file = Path.join([:code.priv_dir(:esqlite), 'esqlite3_nif']) |> to_charlist()
99-
100-
case :erlang.load_nif(nif_file, 0) do
97+
nif_file = Path.join([:code.priv_dir(:esqlite), 'esqlite3_nif'])
98+
case :erlang.load_nif(to_charlist(nif_file), 0) do
10199
:ok -> :ok
102100
{:error, {:reload, _}} -> :ok
103-
{:error, reason} ->
104-
Logger.error "Failed to load nif: #{inspect reason}"
105-
{:error, reason}
101+
{:error, reason} -> {:error, reason}
106102
end
107103
end
108104
end

0 commit comments

Comments
 (0)