Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunPostgres ¶
Types ¶
type Config ¶
type Config struct {
// What dialect to generate with
// psql | mysql | sqlite
Dialect string
// Glob pattern to match migration files
Pattern string
// Folders containing query files
Queries []string `yaml:"queries"`
// The database schemas to generate models for
Schemas []string
// a context value can then be used to set the schema at runtime
// useful for multi-tenant setups
SharedSchema string `yaml:"shared_schema"`
// List of tables that will be included. Others are ignored
Only map[string][]string
// List of tables that will be should be ignored. Others are included
Except map[string][]string
// How many tables to fetch in parallel
Concurrency int
// Which UUID package to use (gofrs or google)
UUIDPkg string `yaml:"uuid_pkg"`
// Which `database/sql` driver to use (the full module name)
DriverName string `yaml:"driver_name"`
Output string
Pkgname string
NoFactory bool `yaml:"no_factory"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.