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

A "fetchAll" function that takes a "Query" type." #16

Open
jaybill opened this issue Jan 7, 2013 · 1 comment
Open

A "fetchAll" function that takes a "Query" type." #16

jaybill opened this issue Jan 7, 2013 · 1 comment

Comments

@jaybill
Copy link

jaybill commented Jan 7, 2013

I would like to propose adding a function that takes a "Query" type and returns a set of records, similar to the way the framework/model package in sawsij does:

http://godoc.org/bitbucket.org/jaybill/sawsij/framework/model#Table.FetchAll
http://godoc.org/bitbucket.org/jaybill/sawsij/framework/model#Query

The function would take a Query, generate a select statement based on it and return the results. This would of course have to take into account the dialect of SQL being used.

This probably shouldn't be called "fetchAll" and it shouldn't replace the existing functionality, just augment it.

@coopernurse
Copy link
Contributor

Sounds useful. Are we looking to do something like query by example?

http://en.wikipedia.org/wiki/Query_by_Example

@GeertJohan GeertJohan added this to the v2.1-maybe milestone Jul 1, 2015
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

3 participants