Skip to content

Conversation

@CharlesDelannoy
Copy link
Member

Context

We want to ensure that all commands are run on a single connection

Change

Concatenete the commands to have them run at once in a connection

@CharlesDelannoy CharlesDelannoy requested a review from a team as a code owner October 30, 2025 16:45
@CharlesDelannoy CharlesDelannoy merged commit 0e0ac3b into master Oct 30, 2025
6 checks passed
@CharlesDelannoy CharlesDelannoy deleted the script-use-one-connection branch October 30, 2025 17:26
_, err := db.ExecContext(timeoutContext, concatenatedSQL)
log.Printf("[DEBUG] Result: %v", err)
if err != nil {
log.Println("[DEBUG] Error catched:", err)

Choose a reason for hiding this comment

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

Being picky: this should say caught, not catched

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.

4 participants