Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + const BaseRequirements + const DeveloperScriptPattern + const EntryFilename + const EntrypointPattern + const EntrypointWithRollback + const FeatureFilename + const ModelPattern + const MySQLConnectorEngine + const RequirementsFilename + const SettingsPattern + const TimeZoneAsiaShanghai + func GenDeveloperScript(rw io.ReadWriter, migration DeveloperScript) error + func GenEntrypoint(rw io.ReadWriter, entrypoint Entrypoint, commit bool) error + func GenModel(rw io.ReadWriter, model Model) error + func GenSettings(rw io.ReadWriter, settings Settings) error + type DeveloperScript struct + Models []string + type Entrypoint struct + CollectorFilename string + DeveloperScriptFilename string + type Fields struct + Name string + Option string + Type string + func ColToDjangoField(col *ast.ColumnDef) (*Fields, error) + type Model struct + Fields []*Fields + ModelName string + TableName string + func CreateTableStmtToModel(stmt *ast.CreateTableStmt) (*Model, error) + type Package struct + CollectorFilename string + Commit bool + DeveloperScript TextFile + Requirements []byte + Settings Settings + func (p *Package) Make() (err error) + func (p *Package) Remove() error + func (p *Package) Run() error + type Settings struct + Engine string + Host string + Name string + Password string + Port int + TimeZone string + User string + func ParseDSN(dsn string) (*Settings, error) + type TextFile interface + GetData func() []byte + GetName func() string