Versions in this module Expand all Collapse all v1 v1.1.0 Nov 7, 2026 v1.0.0 Nov 7, 2026 Changes in this version + const DefaultTargetName + const FileName + const LayerConstants + const LayerController + const LayerDTO + const LayerEntity + const LayerRepository + const LayerService + var Dialects = []string + var ErrNoSuchDatabase = errors.New("no such database in " + FileName) + func DefaultLayers() map[string][]string + func Find(dir string) (string, bool) + func SupportedDialect(name string) bool + type Config struct + Databases map[string]Database + Dialect string + EnvVariable string + Found bool + Generate Generate + Layout Layout + MigrationPath string + Module string + Root string + Rules map[string]string + Skip []string + func Default() *Config + func Load(dir string) (*Config, error) + func (c *Config) AppFileName(app string) string + func (c *Config) AppsPath() string + func (c *Config) DatabaseNames() []string + func (c *Config) DeclaresDatabases() bool + func (c *Config) DialectOf(db Database) string + func (c *Config) HadComments() bool + func (c *Config) IsLayerDir(dirName string) bool + func (c *Config) LayerOf(dirName string) string + func (c *Config) MirrorTests() bool + func (c *Config) ModuleFileName(pkg string) string + func (c *Config) Save(path string) error + func (c *Config) SelectOne(name string) (Target, error) + func (c *Config) SelectTargets(name string) ([]Target, error) + func (c *Config) Targets() []Target + func (c *Config) Validate() error + type Database struct + Dialect string + EnvVariable string + LedgerTable string + MigrationPath string + NoLock bool + type Generate struct + Constants *bool + Repository *bool + Tests *bool + type Layout struct + AppFile string + Apps string + Layers map[string][]string + ModuleFile string + Tests string + TestsDir string + type Target struct + Dialect string + EnvVariable string + LedgerTable string + MigrationPath string + Name string + NoLock bool