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

Question: Is there a way to read just a scalar value from the query? #26

Open
groma84 opened this issue Jan 4, 2023 · 0 comments
Open

Comments

@groma84
Copy link

groma84 commented Jan 4, 2023

I'm trying out Fumble at the moment for a small project and tried reading just a scalar value from the DB:
SELECT COUNT(*) FROM Test.
But then I don't know how to get the resulting number (which does not have a column name) with the SqlRowReader.

I for now use a workaround (naming the resulting count as a column with AS in the statement). Just wanted to know if there's a shorter way.

Thanks for the great library!

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