DB

package
v0.0.0-...-dd2618a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConnectionConfig *gorm.Config

Functions

func DoUpgrade

func DoUpgrade()

func SetCustomConnectConfig

func SetCustomConnectConfig(config *gorm.Config)

Types

type ConnectionType

type ConnectionType struct {
	// contains filtered or unexported fields
}
var Connection ConnectionType

func Connect

func Connect() *ConnectionType

func (*ConnectionType) AddEntry

func (c *ConnectionType) AddEntry(entry *Entry) *ConnectionType

func (*ConnectionType) ListEntries

func (c *ConnectionType) ListEntries() []Entry

type Entry

type Entry struct {
	gorm.Model
	Id   int `gorm:"primary_key"`
	Name string
	Url  string
}

type Schema

type Schema struct{}

Jump to

Keyboard shortcuts

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