Documentation
¶
Index ¶
- type Config
- type Driver
- func (d *Driver) ConnectionInfo() driver.ConnectionInfo
- func (d *Driver) Dialect() dialect.Dialect
- func (d *Driver) Inspector() schema.Inspector
- func (d *Driver) Name() string
- func (d *Driver) Open(ctx context.Context) (*sql.DB, error)
- func (d *Driver) PreflightConfig() driver.PreflightConfig
- func (d *Driver) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DSN string
DriverName string
Host string
Port int
Database string
Username string
Password string
SSLMode string
Timezone string
SearchPath string
PreflightEnabled bool
ModelRoot string
SnapshotPath string
SchemaName string
Options map[string]string
MaxOpenConns int
MaxIdleConns int
ConnMaxLifetime time.Duration
ConnMaxIdleTime time.Duration
}
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func (*Driver) ConnectionInfo ¶ added in v0.4.2
func (d *Driver) ConnectionInfo() driver.ConnectionInfo
func (*Driver) PreflightConfig ¶ added in v0.1.7
func (d *Driver) PreflightConfig() driver.PreflightConfig
Click to show internal directories.
Click to hide internal directories.