Documentation ¶
Index ¶
Constants ¶
View Source
const DatabaseStructVersion = 20220411
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseVersionFile ¶
type DatabaseVersionFile struct { FdwExtension versionfile.InstalledVersion `json:"fdw_extension"` EmbeddedDB versionfile.InstalledVersion `json:"embedded_db"` StructVersion int64 `json:"struct_version"` }
func LoadDatabaseVersionFile ¶
func LoadDatabaseVersionFile() (*DatabaseVersionFile, error)
LoadDatabaseVersionFile migrates from the old version file format if necessary and loads the database version data
func NewDBVersionFile ¶
func NewDBVersionFile() *DatabaseVersionFile
func (DatabaseVersionFile) IsValid ¶
func (s DatabaseVersionFile) IsValid() bool
IsValid checks whether the struct was correctly deserialized, by checking if the StructVersion is populated
func (*DatabaseVersionFile) Save ¶
func (f *DatabaseVersionFile) Save() error
Save writes the config
Click to show internal directories.
Click to hide internal directories.