MCPcopy Create free account
hub / github.com/PostHog/duckgres / MigrationCheckedVersion

Function MigrationCheckedVersion

server/ducklake/migration.go:116–122  ·  view source on GitHub ↗

MigrationCheckedVersion returns the version found in the metadata store. Returns "" if the check has not run or the metadata store had no version.

(connStr string)

Source from the content-addressed store, hash-verified

114// MigrationCheckedVersion returns the version found in the metadata store.
115// Returns "" if the check has not run or the metadata store had no version.
116func MigrationCheckedVersion(connStr string) string {
117 if val, ok := migrations.Load(connStr); ok {
118 state := val.(*migrationState)
119 return state.checkedV
120 }
121 return ""
122}
123
124// CheckAndBackupMigration runs the migration check for the given DuckLake
125// config and returns whether migration is needed. If migration is needed, it

Callers 1

AttachDuckLakeFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected