Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrModuleInitMigrationFileExists ¶
type ErrModuleInitMigrationFileExists struct{}
func (ErrModuleInitMigrationFileExists) Error ¶
func (e ErrModuleInitMigrationFileExists) Error() string
type Modularizer ¶
type Modularizer struct {
// contains filtered or unexported fields
}
func FromConfig ¶
func FromConfig(cfg module.ModuleConfig) ([]*Modularizer, error)
func NewModularizer ¶ added in v0.1.65
func NewModularizer(mod module.Module) (*Modularizer, error)
func (*Modularizer) CreateModule ¶
func (m *Modularizer) CreateModule() error
CreateModule creates a new module based on the modularizer's template data, including the directory structure, module file, entity files, repository files, application file, command files, query files, event files, Postgres adapter files, database migration files, REST API files, OpenAPI schema file, and updates to the SQLC configuration and OpenAPI Generator configuration, and returns an error if there was an issue creating any of the files or directories
type SQLCConfig ¶
type SQLCConfig struct {
Sql []SqlCSqlConfig `json:"sql" yaml:"sql"`
}
Click to show internal directories.
Click to hide internal directories.