database

package
v0.0.0-...-eb599cc Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDB *gorm.DB

DefaultDB is a global instance of a gorm DB

Functions

func Create

func Create(value interface{}) error

Create inserts value into the database

func Delete

func Delete(value interface{}, where ...interface{}) error

Delete deletes a value from the database

func Find

func Find(out interface{}, where ...interface{}) error

Find finds records that match given conditions

Types

This section is empty.

Jump to

Keyboard shortcuts

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