From f082ae9a138edd1ee1bcdfc40276013064fbec7e Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Tue, 10 Nov 2026 00:32:16 +0100 Subject: replace execQuery() with new gsql.Exec() helper --- pgruntime/connector.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pgruntime/connector.go') diff --git a/pgruntime/connector.go b/pgruntime/connector.go index 3a41548..0d79bf1 100644 --- a/pgruntime/connector.go +++ b/pgruntime/connector.go @@ -143,7 +143,7 @@ func createDatabaseIfMissing(ctx context.Context, db gsql.Handle, dbName string) // create database if necessary if !exists { - _, err = execQuery(ctx, db, "CREATE DATABASE "+quoteIdentifier(dbName), nil) + _, err = gsql.Exec(ctx, db, "CREATE DATABASE "+quoteIdentifier(dbName)) if err != nil { return fmt.Errorf("during CREATE DATABASE: %w", err) } @@ -167,7 +167,7 @@ func resetTestDatabase(ctx context.Context, db gsql.Handle, params testSetupPara // truncate all tables at once if len(quotedTableNames) > 0 { query = fmt.Sprintf(`TRUNCATE %s RESTART IDENTITY CASCADE`, strings.Join(quotedTableNames, ", ")) - _, err = execQuery(ctx, db, query, nil) + _, err = gsql.Exec(ctx, db, query) if err != nil { return fmt.Errorf("during %s: %w", query, err) } -- cgit v1.3.1