From ca96a116a0e468f6fe9e1701ca90cf734acdef57 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Tue, 10 Nov 2026 00:14:08 +0100 Subject: replace selectOneValue() with oblast.SelectOne() --- pgruntime/connector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pgruntime/connector.go') diff --git a/pgruntime/connector.go b/pgruntime/connector.go index c60b8d4..3a41548 100644 --- a/pgruntime/connector.go +++ b/pgruntime/connector.go @@ -136,7 +136,7 @@ func (c Connector[T]) ConnectForTest(t assert.TestingTB, behavior ConnectionBeha func createDatabaseIfMissing(ctx context.Context, db gsql.Handle, dbName string) error { // check if database exists - exists, err := selectOneValue[bool](ctx, db, `SELECT COUNT(*) > 0 FROM pg_catalog.pg_database WHERE datname = $1`, dbName) + exists, err := oblast.SelectOne[bool](ctx, db, `SELECT COUNT(*) > 0 FROM pg_catalog.pg_database WHERE datname = $1`, dbName) if err != nil { return fmt.Errorf("while reading from pg_catalog.pg_database: %w", err) } -- cgit v1.3.1