More specific types

This commit is contained in:
Alexey Romanov
2010-11-23 16:52:35 +03:00
parent b256eae5dd
commit 46a843b1ce
2 changed files with 62 additions and 44 deletions

View File

@@ -21,3 +21,7 @@
-define(NULL_ATOM, null).
-type(sql_value() :: number() | ?NULL_ATOM | iodata() | {blob, binary()}).
-type(sqlite_error() :: {error, integer(), string()}).
-type(sql_non_query_result() :: ok | sqlite_error()).
-type(sql_result() :: sql_non_query_result() | [{columns, [string()]} | {rows, [tuple()]}]).