Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Type Type // The type of database DBName string // The name of database Host string // The host of database Port int // The port of database Username string // The username of database Password string // The password of database DBFilePath string // The file path for sqlite }
Config holds the configuration for connecting to a database.
func (Config) DSN ¶
DSN returns the Data Source Name for the database configuration.
Click to show internal directories.
Click to hide internal directories.