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/behavior.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pgruntime/behavior.go') diff --git a/pgruntime/behavior.go b/pgruntime/behavior.go index 03ff338..cdd1e67 100644 --- a/pgruntime/behavior.go +++ b/pgruntime/behavior.go @@ -9,6 +9,7 @@ import ( "slices" "go.xyrillian.de/gg/gsql" + "go.xyrillian.de/gg/oblast" ) // ConnectionBehavior contains configuration for [Connector.Connect] and [Connector.ConnectForTest]. @@ -68,7 +69,7 @@ func applyMigrations(ctx context.Context, db gsql.ConnectionHandle, migrations m } // read schema_migrations table - rowCount, err := selectOneValue[int64](ctx, db, `SELECT COUNT(*) FROM schema_migrations`) + rowCount, err := oblast.SelectOne[int64](ctx, db, `SELECT COUNT(*) FROM schema_migrations`) if err != nil { return fmt.Errorf("could not check row count for schema_migrations: %w", err) } -- cgit v1.3.1