aboutsummaryrefslogtreecommitdiff
path: root/pgruntime/behavior.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-11-10 00:14:08 +0100
committerStefan Majewsky <majewsky@gmx.net>2026-11-10 00:14:08 +0100
commitca96a116a0e468f6fe9e1701ca90cf734acdef57 (patch)
treebe635c79dc48b8ef010ddd543d94cfb14444eca7 /pgruntime/behavior.go
parentedf487f2e1ff6f392a5b9ddc69a4a44a36ca4985 (diff)
downloadgo-gg-ca96a116a0e468f6fe9e1701ca90cf734acdef57.tar.gz
replace selectOneValue() with oblast.SelectOne()
Diffstat (limited to 'pgruntime/behavior.go')
-rw-r--r--pgruntime/behavior.go3
1 files changed, 2 insertions, 1 deletions
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)
}