Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSource ¶
DataSource provide the method(s) to set up the database and its tables
func NewDB ¶
func NewDB() (DataSource, error)
NewDB gets builds the right datasource based on the type
type MariadbDataSource ¶
type MariadbDataSource struct { User string Password string Host string Port string Database string }
MariadbDataSource holds the information used to build the mysql or mariadb datasource
type PostgresqlDataSource ¶
type PostgresqlDataSource struct { User string Password string Host string Port string Database string SSLMode string }
PostgresqlDataSource holds the information used to build the psql datasource
type SqlliteDataSource ¶
type SqlliteDataSource struct {
DbFilePath string
}
SqlliteDataSource holds the information used to build the sqllite datasource
Click to show internal directories.
Click to hide internal directories.