database

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseDB

func CloseDB(db *gorm.DB)

func Connection

func Connection(uri string, shouldExist, debug bool) (*gorm.DB, error)

Connection returns a Database connection based on a URI

func GetDbApplication

func GetDbApplication(db *gorm.DB) string

Types

type Application

type Application struct {
	Application string    `json:"application"`
	CreatedAt   time.Time `json:"created_at"`
}

func (Application) TableName

func (Application) TableName() string

Jump to

Keyboard shortcuts

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