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

Make SQL method semantics consistent #40

Open
mitalia opened this issue Aug 26, 2013 · 0 comments
Open

Make SQL method semantics consistent #40

mitalia opened this issue Aug 26, 2013 · 0 comments

Comments

@mitalia
Copy link
Contributor

mitalia commented Aug 26, 2013

In general we have a mix of semantics in use when sql methods are called. They should be unified as follows:

If a method can return something (e.g. a count, resultset, etc...) it should return an Option[Type]. If the method merely performs a task which may or may not succeed, it should not return anything and should instead rely on exceptions for proper error handling. In cases where the underlying JDBC driver returns some true/false that must be checked, this should be promoted to a try/catch exception mechanism.

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

No branches or pull requests

1 participant