Documentation ¶
Index ¶
- Variables
- type Atlas
- func (t *Atlas) Init(dbType DbType, conn *db.Conn) error
- func (t *Atlas) InspectSchema() (*schema.Schema, error)
- func (t *Atlas) Load(path string) (*schema.Schema, error)
- func (t *Atlas) MarshalHCL(sch *schema.Schema) ([]byte, error)
- func (t *Atlas) MigrateSchema(sch *schema.Schema) error
- func (t *Atlas) Save(path string, sch *schema.Schema) error
- func (t *Atlas) UnmarshalHCL(bt []byte) (*schema.Schema, error)
- type DbType
Constants ¶
This section is empty.
Variables ¶
View Source
var DbTypeStr map[DbType]string = map[DbType]string{ DbTypeEmpty: "empty", DbTypeMySQL: "mysql", DbTypeMaria: "mariadb", DbTypePostgre: "postgres", DbTypeSQLite: "sqlite", DbTypeTiDB: "tidb", DbTypeCockroachDB: "cockroachdb", }
View Source
var DbTypeStrReverse map[string]DbType = map[string]DbType{ "empty": DbTypeEmpty, "mysql": DbTypeMySQL, "mariadb": DbTypeMaria, "postgres": DbTypePostgre, "sqlite": DbTypeSQLite, "tidb": DbTypeTiDB, "cockroachdb": DbTypeCockroachDB, }
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.