From 833e477420513a46faa4ebcc1164c50a8288a9ab Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Tue, 10 Nov 2026 00:19:47 +0100 Subject: replace query() with oblast.SelectOne() or oblast.TupleSelectOne() --- testing/pgruntime/helpers_test.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'testing/pgruntime/helpers_test.go') diff --git a/testing/pgruntime/helpers_test.go b/testing/pgruntime/helpers_test.go index 835df8b..d8c3cc9 100644 --- a/testing/pgruntime/helpers_test.go +++ b/testing/pgruntime/helpers_test.go @@ -21,13 +21,3 @@ func execQuery(ctx context.Context, db gsql.Handle, query string, args []any) (s result, err := stmt.Exec(ctx, args) return result, errext.WithCleanup(err, "stmt.Close", stmt.Close()) } - -// Convenience function for executing a one-off SQL query returning one row. -func queryRow(ctx context.Context, db gsql.Handle, query string, args, slots []any) error { - stmt, err := db.GSQLPrepare(ctx, query, false) - if err != nil { - return err - } - err = stmt.QueryRow(ctx, args, slots) - return errext.WithCleanup(err, "stmt.Close", stmt.Close()) -} -- cgit v1.3.1