Added travis
This commit is contained in:
2
.travis.yml
Normal file
2
.travis.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
language: erlang
|
||||||
|
script: "rebar compile eunit"
|
||||||
@@ -41,38 +41,48 @@ init() ->
|
|||||||
start() ->
|
start() ->
|
||||||
exit(nif_library_not_loaded).
|
exit(nif_library_not_loaded).
|
||||||
|
|
||||||
%% @doc Open a connection to
|
%% @doc Open the specified sqlite3 database.
|
||||||
%%
|
%%
|
||||||
%% @spec open(connection(), reference(), pid(), string()) -> ok
|
%% Sends an asynchronous open command over the connection and returns
|
||||||
|
%% ok immediately. When the database is opened
|
||||||
|
%%
|
||||||
|
%% @spec open(connection(), reference(), pid(), string()) -> ok | {error, message()}
|
||||||
open(_Db, _Ref, _Dest, _Filename) ->
|
open(_Db, _Ref, _Dest, _Filename) ->
|
||||||
exit(nif_library_not_loaded).
|
exit(nif_library_not_loaded).
|
||||||
|
|
||||||
%% @doc
|
%% @doc Exec the query.
|
||||||
%%
|
%%
|
||||||
%% @spec exec(connection(), reference(), pid(), string()) -> ok
|
%% Sends an asynchronous exec command over the connection and returns
|
||||||
|
%% ok immediately.
|
||||||
|
%%
|
||||||
|
%% When the statement is executed Dest will receive message {Ref, answer()}
|
||||||
|
%% with answer() integer | {error, reason()}
|
||||||
|
%%
|
||||||
|
%% @spec exec(connection(), Ref::reference(), Dest::pid(), string()) -> ok | {error, message()}
|
||||||
exec(_Db, _Ref, _Dest, _Sql) ->
|
exec(_Db, _Ref, _Dest, _Sql) ->
|
||||||
exit(nif_library_not_loaded).
|
exit(nif_library_not_loaded).
|
||||||
|
|
||||||
%% @doc
|
%% @doc
|
||||||
%%
|
%%
|
||||||
%% @spec prepare(connection(), reference(), pid(), string()) -> ok
|
%% @spec prepare(connection(), reference(), pid(), string()) -> ok | {error, message()}
|
||||||
prepare(_Db, _Ref, _Dest, _Sql) ->
|
prepare(_Db, _Ref, _Dest, _Sql) ->
|
||||||
exit(nif_library_not_loaded).
|
exit(nif_library_not_loaded).
|
||||||
|
|
||||||
%% @doc
|
%% @doc
|
||||||
%%
|
%%
|
||||||
%% @spec step(connection(), reference(), pid()) -> ok
|
%% @spec step(connection(), reference(), pid()) -> ok | {error, message()}
|
||||||
step(_Stmt, _Ref, _Dest) ->
|
step(_Stmt, _Ref, _Dest) ->
|
||||||
exit(nif_library_not_loaded).
|
exit(nif_library_not_loaded).
|
||||||
|
|
||||||
%% @doc
|
%% @doc Bind parameters to a prepared statement.
|
||||||
%% @spec bind(connection(), reference(), pid(), []) -> ok
|
%%
|
||||||
|
%% @spec bind(connection(), reference(), pid(), []) -> ok | {error, message()}
|
||||||
bind(_Stmt, _Ref, _Dest, _Args) ->
|
bind(_Stmt, _Ref, _Dest, _Args) ->
|
||||||
exit(nif_library_not_loaded).
|
exit(nif_library_not_loaded).
|
||||||
|
|
||||||
%% @doc
|
%% @doc Close the connection.
|
||||||
%%
|
%%
|
||||||
%% @spec close(connection(), reference(), pid()) -> ok
|
%% @spec close(connection(), reference(), pid()) -> ok | {error, message()}
|
||||||
close(_Db, _Ref, _Dest) ->
|
close(_Db, _Ref, _Dest) ->
|
||||||
exit(nif_library_not_loaded).
|
exit(nif_library_not_loaded).
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user