get column types

This commit is contained in:
Michael Ries
2015-01-30 09:16:35 -07:00
parent 9967ced039
commit 19080b849c
5 changed files with 114 additions and 7 deletions

View File

@@ -32,6 +32,7 @@
finalize/3,
bind/4,
column_names/3,
column_types/3,
close/3
]).
@@ -116,6 +117,12 @@ bind(_Stmt, _Ref, _Dest, _Args) ->
column_names(_Stmt, _Ref, _Dest) ->
exit(nif_library_not_loaded).
%% @doc Retrieve the column types of the prepared statement
%%
%% @spec column_types(statement(), reference(), pid()) -> {ok, tuple()} | {error, message()}
column_types(_Stmt, _Ref, _Dest) ->
exit(nif_library_not_loaded).
%% @doc Close the connection.
%%
%% @spec close(connection(), reference(), pid()) -> ok | {error, message()}