mocks

package
v0.0.0-...-2be0f72 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	mock.Mock
}

func (*Model) Q

func (m *Model) Q() model.Query

func (*Model) Qs

func (m *Model) Qs(session *r.Session) model.Query

func (*Model) T

func (m *Model) T() r.Term

func (*Model) Table

func (m *Model) Table() r.Term

type Query

type Query struct {
	mock.Mock
}

func (*Query) ByID

func (m *Query) ByID(id string, obj interface{}) error

func (*Query) Delete

func (m *Query) Delete(id string) error

func (*Query) Insert

func (m *Query) Insert(what interface{}, dest interface{}) error

func (*Query) InsertRaw

func (m *Query) InsertRaw(table string, what interface{}, dest interface{}) error

func (*Query) Row

func (m *Query) Row(query r.Term, obj interface{}) error

func (*Query) Rows

func (m *Query) Rows(query r.Term, results interface{}) error

func (*Query) Rql

func (m *Query) Rql() r.Term

func (*Query) Session

func (m *Query) Session() *r.Session

func (*Query) Update

func (m *Query) Update(id string, what interface{}) error

Jump to

Keyboard shortcuts

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