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)
| 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. |
| 116 | func 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 |