Added travis

This commit is contained in:
Maas-Maarten Zeeman
2011-11-07 22:18:23 +01:00
parent ffb65cf442
commit f7c2d15e51
2 changed files with 22 additions and 10 deletions

2
.travis.yml Normal file
View File

@@ -0,0 +1,2 @@
language: erlang
script: "rebar compile eunit"

View File

@@ -41,38 +41,48 @@ init() ->
start() ->
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) ->
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) ->
exit(nif_library_not_loaded).
%% @doc
%%
%% @spec prepare(connection(), reference(), pid(), string()) -> ok
%% @spec prepare(connection(), reference(), pid(), string()) -> ok | {error, message()}
prepare(_Db, _Ref, _Dest, _Sql) ->
exit(nif_library_not_loaded).
%% @doc
%%
%% @spec step(connection(), reference(), pid()) -> ok
%% @spec step(connection(), reference(), pid()) -> ok | {error, message()}
step(_Stmt, _Ref, _Dest) ->
exit(nif_library_not_loaded).
%% @doc
%% @spec bind(connection(), reference(), pid(), []) -> ok
%% @doc Bind parameters to a prepared statement.
%%
%% @spec bind(connection(), reference(), pid(), []) -> ok | {error, message()}
bind(_Stmt, _Ref, _Dest, _Args) ->
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) ->
exit(nif_library_not_loaded).