db

package
v0.0.0-...-cd96442 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Database *gorm.DB

Functions

func AddMatchDays

func AddMatchDays()

func InitMariaDB

func InitMariaDB(options *MariaDBOptions)

func InitSqlite

func InitSqlite(options *SqliteDBOptions)

func LinkTables

func LinkTables(purge bool)

Create tables in the database for the specific data models

Types

type MariaDBOptions

type MariaDBOptions struct {
	Username string
	Password string
	Database string
	Host     string
	Port     int
	Other    string

	LogLevel int
	LogPath  string
}

type SqliteDBOptions

type SqliteDBOptions struct {
	Path   string
	Memory bool
	Other  string

	LogLevel int
	LogPath  string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL