We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Seems there is a block form to read a query ResultSet, what I reached for today was a block form with types specified:
Basically def query_all(query, *args_, args : Array? = nil, as types : Tuple) with a block to receive the values:
def query_all(query, *args_, args : Array? = nil, as types : Tuple)
db.query_all("select 'a', 1", as: {String, Int32}) do |mystring, myint| end
Just might be a nice syntactic sugar. Same for the NamedTuple version. Thoughts?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Seems there is a block form to read a query ResultSet, what I reached for today was a block form with types specified:
Basically
def query_all(query, *args_, args : Array? = nil, as types : Tuple)
with a block to receive the values:Just might be a nice syntactic sugar. Same for the NamedTuple version. Thoughts?
The text was updated successfully, but these errors were encountered: