-
Notifications
You must be signed in to change notification settings - Fork 213
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
Add ability to force a Dataset query to run as prepared. #7
Labels
Comments
doug-martin
added a commit
that referenced
this issue
Mar 14, 2015
* Changed sql generation methods to use a common naming convention. `To(Sql|Insert|Update|Delete)` * Also changed to have common return values `string, []interface{}, error)` * Added `Dataset.Prepared` which allows a user to specify whether or not SQL should be interpolated. #7 * Updated Docs * More examples * Increased test coverage.
doug-martin
added a commit
that referenced
this issue
Mar 14, 2015
* Changed sql generation methods to use a common naming convention. `To(Sql|Insert|Update|Delete)` * Also changed to have common return values `string, []interface{}, error)` * Added `Dataset.Prepared` which allows a user to specify whether or not SQL should be interpolated. #7 * Updated Docs * More examples * Increased test coverage.
doug-martin
added a commit
that referenced
this issue
Mar 14, 2015
* Changed sql generation methods to use a common naming convention. `To(Sql|Insert|Update|Delete)` * Also changed to have common return values `string, []interface{}, error)` * Added `Dataset.Prepared` which allows a user to specify whether or not SQL should be interpolated. #7 * Updated Docs * More examples * Increased test coverage.
doug-martin
added a commit
that referenced
this issue
Mar 14, 2015
* Changed sql generation methods to use a common naming convention. `To(Sql|Insert|Update|Delete)` * Also changed to have common return values `string, []interface{}, error)` * Added `Dataset.Prepared` which allows a user to specify whether or not SQL should be interpolated. #7 * Updated Docs * More examples * Increased test coverage.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently all statements are interpolated by Dataset if run directly. I would be nice to specify that the dataset should use a prepared statement.
This might also entail adding a statement cacher to prevent the same query from being prepared multiple times.
The text was updated successfully, but these errors were encountered: