database

package
v0.0.0-...-37b5536 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(database string) bool

func GetCredentials

func GetCredentials(jsonFile string) bool

func GetDB

func GetDB() *gorm.DB

Types

type Credentials

type Credentials struct {
	Database []Database `json:"Database"`
}

type Database

type Database struct {
	Name     string `json:"name"`
	Type     string `json:"type"`
	Username string `json:"username"`
	Password string `json:"password"`
	Instance string `json:"instance"`
	Database string `json:"database"`
	IsLocal  bool   `json:"islocal"`
}

Jump to

Keyboard shortcuts

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