Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.1.34
type Config struct { DBName string // The database name AppName string // The application name (if any) }
Config describes possible configuration options for a handler.
type Interface ¶
type Interface interface { // DriverName returns the driver name associated with this handler. DriverName() string // ToDataSource returns the data source string for the given config. The handler is free to use sensible default values if any of the arguments are empty. ToDataSource(cfg Config) (string, error) }
Interface is the interface satisfied by handlers
Click to show internal directories.
Click to hide internal directories.