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) MigrateDSN ¶ added in v0.3.0
type Database ¶ added in v0.3.0
func NewDatabase ¶ added in v0.3.0
NewDatabase initializes the Database struct and establishes a connection.
func (*Database) MigrateDown ¶ added in v0.3.0
MigrateDown handles database down migrations from the specified directory.
Click to show internal directories.
Click to hide internal directories.