norm

package
v0.0.0-...-752b63c Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Norm

type Norm struct {
	// contains filtered or unexported fields
}

func NewNorm

func NewNorm(dbop *sqlt.DbOp) *Norm

func (*Norm) NewSimpleNorm

func (n *Norm) NewSimpleNorm(c context.Context) *SimpleNorm

func (*Norm) NewSimpleNormDefault

func (n *Norm) NewSimpleNormDefault() *SimpleNorm

func (*Norm) NewTxNorm

func (n *Norm) NewTxNorm(c context.Context, i interface{}, opt *sql.TxOptions) *TxNorm

func (*Norm) NewTxNormDefault

func (n *Norm) NewTxNormDefault(opt *sql.TxOptions) *TxNorm

func (*Norm) NewTxNormWithContext

func (n *Norm) NewTxNormWithContext(c context.Context, opt *sql.TxOptions) *TxNorm

type SimpleNorm

type SimpleNorm struct {
	// contains filtered or unexported fields
}

func (*SimpleNorm) AddAll

func (s *SimpleNorm) AddAll(m map[string]interface{}) *SimpleNorm

func (*SimpleNorm) AddParam

func (s *SimpleNorm) AddParam(k string, v interface{}) *SimpleNorm

func (*SimpleNorm) Exec

func (s *SimpleNorm) Exec() (int64, error)

func (*SimpleNorm) ExecRtn

func (s *SimpleNorm) ExecRtn() (sqlt.MultiRowsHandler, error)

func (*SimpleNorm) Query

func (s *SimpleNorm) Query() (sqlt.MultiRowsHandler, error)

func (*SimpleNorm) RemoveParam

func (s *SimpleNorm) RemoveParam(k string) *SimpleNorm

func (*SimpleNorm) With

func (s *SimpleNorm) With(id string, p map[string]interface{}, mrh sqlt.MultiRowsHandler) *SimpleNorm

func (*SimpleNorm) WithHandler

func (s *SimpleNorm) WithHandler(mrh sqlt.MultiRowsHandler) *SimpleNorm

func (*SimpleNorm) WithId

func (s *SimpleNorm) WithId(id string) *SimpleNorm

type TxNorm

type TxNorm struct {
	// contains filtered or unexported fields
}

func (*TxNorm) AddAll

func (s *TxNorm) AddAll(m map[string]interface{}) *TxNorm

func (*TxNorm) AddParam

func (s *TxNorm) AddParam(k string, v interface{}) *TxNorm

func (*TxNorm) AutoRollback

func (s *TxNorm) AutoRollback(b bool) *TxNorm

func (*TxNorm) Commit

func (s *TxNorm) Commit() error

func (*TxNorm) Exec

func (s *TxNorm) Exec() *TxNorm

func (*TxNorm) ExecRtn

func (s *TxNorm) ExecRtn() *TxNorm

func (*TxNorm) Query

func (s *TxNorm) Query() *TxNorm

func (*TxNorm) RemoveParam

func (s *TxNorm) RemoveParam(k string) *TxNorm

func (*TxNorm) Rollback

func (s *TxNorm) Rollback() error

func (*TxNorm) WithHandler

func (s *TxNorm) WithHandler(mrh sqlt.MultiRowsHandler) *TxNorm

func (*TxNorm) WithId

func (s *TxNorm) WithId(id string) *TxNorm

Jump to

Keyboard shortcuts

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