Refactoring a bit

This commit is contained in:
Maas-Maarten Zeeman
2011-10-29 23:47:51 +02:00
parent b764facb7c
commit faa567a135
2 changed files with 52 additions and 36 deletions

View File

@@ -74,6 +74,35 @@ exec(Statement, Acc, Tries) ->
%% esqlite:exec(Db, "commit;"),
%%
% api...
q(Sql, Connection) ->
ok.
q(Sql, Args, Connection) ->
ok.
%%
%% options --
%% [{sync, bool()}
%% -- asynchronous or synchronous. Default true
%% {receiver, (pid()|function/1|{M, F, A}},
%% -- for asynchronous requests, to send the result to.
%% {stream, pid()},
%% -- instead of receiving all rows at once, send them one by one.
%% {..},
%% ]
%%
%% return
%% {ok, Result} -- result kan dan headers, rows of request-id (voor async)
%% {error, ...
q(Sql, Args, Options, Connection) ->
ok.