diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-11-10 00:14:08 +0100 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-11-10 00:14:08 +0100 |
| commit | ca96a116a0e468f6fe9e1701ca90cf734acdef57 (patch) | |
| tree | be635c79dc48b8ef010ddd543d94cfb14444eca7 /pgruntime/behavior.go | |
| parent | edf487f2e1ff6f392a5b9ddc69a4a44a36ca4985 (diff) | |
| download | go-gg-ca96a116a0e468f6fe9e1701ca90cf734acdef57.tar.gz | |
replace selectOneValue() with oblast.SelectOne()
Diffstat (limited to 'pgruntime/behavior.go')
| -rw-r--r-- | pgruntime/behavior.go | 3 |
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) } |
