db

package
v0.0.0-...-76fdd16 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	Migrate(object interface{})
	MigrateAll(objects ...interface{})
	Create(value ...interface{})
	Update(value interface{})
	Delete(value interface{})
	Find(out interface{}, where ...interface{}) error
}

Database is a public interface to a Relational Database using gorm

func NewDatabase

func NewDatabase() Database

NewDatabase creates a new Database instance and opens with default

Jump to

Keyboard shortcuts

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