Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
ORM string `json:"orm"` // ORM type, e.g., "gorm", "sqlx", "ent"
Driver string `json:"driver"` // Driver name, e.g., "mysql", "postgres"
Source string `json:"source"` // Data source name (DSN), e.g., "mysql://user:pass@tcp(localhost:3306)/dbname"
IncludedTables []string `json:"included_tables"` // IncludedTables to inspect (all if empty)
ExcludedTables []string `json:"excluded_tables"` // ExcludedTables to exclude from inspection
SchemaPath string `json:"schema_path"` // Path to save the generated schema files
DaoPath string `json:"dao_path"` // Path to save the generated DAO code (for gorm)
}
Click to show internal directories.
Click to hide internal directories.