mirror of
https://github.com/hanzoai/ca.git
synced 2026-11-03 18:08:27 +00:00
20 lines
859 B
Go
20 lines
859 B
Go
package config
|
|
|
|
type SQL struct {
|
|
// TODO: delete Driver after deployment to Production
|
|
// Driver specifies the driver name: postgres|mysql.
|
|
Driver string `json:"driver,omitempty" yaml:"driver,omitempty"`
|
|
|
|
// DataSource specifies the connection string. It can be prefixed with file:// or env:// to load the source from a file or environment variable.
|
|
DataSource string `json:"data_source,omitempty" yaml:"data_source,omitempty"`
|
|
|
|
// MigrationsDir specifies the directory that contains migrations.
|
|
MigrationsDir string `json:"migrations_dir,omitempty" yaml:"migrations_dir,omitempty"`
|
|
|
|
// ForceVersion specifies to force version.
|
|
ForceVersion int `json:"force_version,omitempty" yaml:"force_version,omitempty"`
|
|
|
|
// MigrateVersion specifies to migrate version.
|
|
MigrateVersion int `json:"migrate_version,omitempty" yaml:"migrate_version,omitempty"`
|
|
}
|