Skip to content

Conversation

@NathanDennis
Copy link
Contributor

Small test for the Execute GSDB function

I'm sure there's some clean ups / effiency chances that can be done here, such as auto incrementing the test case IDs rather than manually setting them to +1 of the previous case. Let me know if you have any ideas

context.Background(),
`SELECT name FROM test ORDER BY id DESC LIMIT 1`,
).Scan(&queriedName)
if err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ace! :-) Thank you! .. In this bit can you have a go at using the QueryStruct and QuerySingleStuct to get the data, we get more test coverage then. Maybe use both methods and make sure they both return the same thing?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add yourself a task for this if you like. I'd rather not hold up the PR.

@ack3rs ack3rs merged commit 47f846d into main Aug 19, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants