postgres

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: Unlicense Imports: 9 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 {
	PgDB *pg.DB
}

func (Database) Close

func (db Database) Close() error

func (Database) Delete

func (db Database) Delete(model interface{}) error

func (Database) Insert

func (db Database) Insert(model interface{}) error

func (Database) SyncSchema

func (db Database) SyncSchema(options database.SchemaSyncOptions, models ...interface{}) error

func (Database) Update

func (db Database) Update(model interface{}) error

Jump to

Keyboard shortcuts

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