Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dialyzer types for return values of transformed results #91

Open
joedevivo opened this issue Apr 9, 2015 · 0 comments
Open

dialyzer types for return values of transformed results #91

joedevivo opened this issue Apr 9, 2015 · 0 comments

Comments

@joedevivo
Copy link
Contributor

-type sqerl_row() :: [{binary(), term()}].
-type sqerl_rows() :: [sqerl_row()].
-type sqerl_results() :: {ok, integer() | sqerl_rows()} |
                         {ok, integer(), sqerl_rows()} |
                         {error, atom() | tuple()}.

the return type sqerl_row is really only guaranteed if you're not using a sqerl_transformer.

At least you are restricted to the sqerl_transformer module. but each transform should be typed, and the composite type of those returns should be the real sqerl_row.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant