Documentation
¶
Index ¶
- Constants
- func EnumType(types drivers.Types, enum string) string
- func GetConfigFromFile[ConstraintExtra, DriverConfig any](configPath, driverConfigKey string) (gen.Config[ConstraintExtra], DriverConfig, plugins.Config, error)
- func GetConfigFromProvider[ConstraintExtra, DriverConfig any](provider koanf.Provider, driverConfigKey string) (gen.Config[ConstraintExtra], DriverConfig, plugins.Config, error)
- func Migrate(ctx context.Context, db *sql.DB, dir fs.FS, pattern string) error
- func Types() drivers.Types
- func Version() string
- type Config
Constants ¶
View Source
const DefaultConfigPath = "./bobgen.yaml"
Variables ¶
This section is empty.
Functions ¶
func GetConfigFromFile ¶ added in v0.17.2
func GetConfigFromProvider ¶ added in v0.17.2
Types ¶
type Config ¶ added in v0.37.0
type Config struct {
// Which `database` driver to use (the full module name)
Driver string `yaml:"driver"`
// The database connection string
Dsn string
// List of tables that will be included. Others are ignored
Only map[string][]string
// Folders containing query files
Queries []string `yaml:"queries"`
// List of tables that will be should be ignored. Others are included
Except map[string][]string
}
Click to show internal directories.
Click to hide internal directories.