database

package
v0.0.0-...-b985c81 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	Username string
	Password string
	URI      string
	Table    string
}

Credentials stores the database configuration

type Database

type Database struct {
	Instance *gorm.DB
	// contains filtered or unexported fields
}

DB is a struct that represents a high-level database package

func Initiate

func Initiate() *Database

Start is a function tha fetches credentials and initiates the connection to the database

Jump to

Keyboard shortcuts

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