Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// The database connection string
DSN string
// The database schemas to generate models for
// a map of the schema name to the DSN
Attach map[string]string
// a context value can then be used ot 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
// The name of the folder to output the models package to
Output string
// The name you wish to assign to your generated models package
Pkgname string
NoFactory bool `yaml:"no_factory"`
}
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver holds the database connection string and a handle to the database connection.
func (*Driver) Capabilities ¶
func (d *Driver) Capabilities() drivers.Capabilities
Click to show internal directories.
Click to hide internal directories.