database

package
v0.0.0-...-c4bdd08 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close Closes the underlying DB

func Create

func Create(dst interface{})

Create a new instance of the supplied interface, this is a helper wrapper around the database so you don't need to check FetchDatabase

func FetchDatabase

func FetchDatabase() *gorm.DB

FetchDatabase Return the current database pointer

func InitDatabase

func InitDatabase(dbName *string, dst ...interface{})

InitDatabase Create a db in the dbName path/filename, and migrate it with the supplied models

func Save

func Save(dst interface{})

Save Update an instance of the supplied interface, this is a helper wrapper around the database so you don't need to check FetchDatabase

Types

This section is empty.

Jump to

Keyboard shortcuts

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