Added a spec

This commit is contained in:
Maas-Maarten Zeeman
2012-12-27 00:11:38 +01:00
parent 827a8c1756
commit d305b0f886

View File

@@ -243,9 +243,11 @@ bind(Stmt, Args, Timeout) ->
%% @doc Return the column names of the prepared statement.
%%
-spec column_names(statement()) -> tuple(atom()).
column_names(Stmt) ->
column_names(Stmt, ?DEFAULT_TIMEOUT).
-spec column_names(statement(), timeout()) -> tuple(atom()).
column_names(Stmt, Timeout) ->
Ref = make_ref(),
ok = esqlite3_nif:column_names(Stmt, Ref, self()),