postgres

package
v0.0.0-...-711f10a Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2017 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArPostgres

type ArPostgres struct {
	ActiveRecord
	ID int `gorm:"primary_key" json:"id,omitempty"`
	//ID string `sql:"type:varchar(36)" gorm:"primary_key" json:"id,omitempty"`
	Timestamps
}

func (*ArPostgres) All

func (ar *ArPostgres) All(models interface{}, opts map[string]interface{}) (err error)

func (*ArPostgres) Client

func (ar *ArPostgres) Client() gorm.DB

func (*ArPostgres) DbDelete

func (ar *ArPostgres) DbDelete() (err error)

func (*ArPostgres) DbSave

func (ar *ArPostgres) DbSave() error

func (*ArPostgres) DbSearch

func (ar *ArPostgres) DbSearch(models interface{}) (err error)

func (*ArPostgres) Find

func (ar *ArPostgres) Find(id interface{}, out interface{}) error

func (*ArPostgres) SetKey

func (ar *ArPostgres) SetKey(key string)

func (*ArPostgres) SpExecResultSet

func (ar *ArPostgres) SpExecResultSet(spName string, params map[string]interface{}, models interface{}) (err error)

func (*ArPostgres) Truncate

func (ar *ArPostgres) Truncate() (numRowsDeleted int, err error)

Jump to

Keyboard shortcuts

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