database

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: GPL-3.0 Imports: 5 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 struct {
	// contains filtered or unexported fields
}

func New

func New() *Database

func (*Database) Connect

func (obj *Database) Connect()

func (*Database) Count added in v0.2.0

func (obj *Database) Count(model, query interface{}, count *int64)

func (*Database) Create

func (obj *Database) Create(model, objects interface{})

func (*Database) Delete

func (obj *Database) Delete(model, query interface{})

func (*Database) Migrate

func (obj *Database) Migrate()

func (*Database) Query

func (obj *Database) Query(model, query, objects interface{})

func (*Database) QueryWithPreload added in v0.1.1

func (obj *Database) QueryWithPreload(model, query, objects interface{})

func (*Database) Read

func (obj *Database) Read(model, ID, object interface{}) bool

func (*Database) Update

func (obj *Database) Update(model, query, object interface{})

Jump to

Keyboard shortcuts

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