Documentation ¶
Index ¶
- type Norm
- func (n *Norm) NewSimpleNorm(c context.Context) *SimpleNorm
- func (n *Norm) NewSimpleNormDefault() *SimpleNorm
- func (n *Norm) NewTxNorm(c context.Context, i interface{}, opt *sql.TxOptions) *TxNorm
- func (n *Norm) NewTxNormDefault(opt *sql.TxOptions) *TxNorm
- func (n *Norm) NewTxNormWithContext(c context.Context, opt *sql.TxOptions) *TxNorm
- type SimpleNorm
- func (s *SimpleNorm) AddAll(m map[string]interface{}) *SimpleNorm
- func (s *SimpleNorm) AddParam(k string, v interface{}) *SimpleNorm
- func (s *SimpleNorm) Exec() (int64, error)
- func (s *SimpleNorm) ExecRtn() (sqlt.MultiRowsHandler, error)
- func (s *SimpleNorm) Query() (sqlt.MultiRowsHandler, error)
- func (s *SimpleNorm) RemoveParam(k string) *SimpleNorm
- func (s *SimpleNorm) With(id string, p map[string]interface{}, mrh sqlt.MultiRowsHandler) *SimpleNorm
- func (s *SimpleNorm) WithHandler(mrh sqlt.MultiRowsHandler) *SimpleNorm
- func (s *SimpleNorm) WithId(id string) *SimpleNorm
- type TxNorm
- func (s *TxNorm) AddAll(m map[string]interface{}) *TxNorm
- func (s *TxNorm) AddParam(k string, v interface{}) *TxNorm
- func (s *TxNorm) AutoRollback(b bool) *TxNorm
- func (s *TxNorm) Commit() error
- func (s *TxNorm) Exec() *TxNorm
- func (s *TxNorm) ExecRtn() *TxNorm
- func (s *TxNorm) Query() *TxNorm
- func (s *TxNorm) RemoveParam(k string) *TxNorm
- func (s *TxNorm) Rollback() error
- func (s *TxNorm) WithHandler(mrh sqlt.MultiRowsHandler) *TxNorm
- func (s *TxNorm) WithId(id string) *TxNorm
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 (*Norm) NewSimpleNorm ¶
func (n *Norm) NewSimpleNorm(c context.Context) *SimpleNorm
func (*Norm) NewSimpleNormDefault ¶
func (n *Norm) NewSimpleNormDefault() *SimpleNorm
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) AutoRollback ¶
func (*TxNorm) RemoveParam ¶
func (*TxNorm) WithHandler ¶
func (s *TxNorm) WithHandler(mrh sqlt.MultiRowsHandler) *TxNorm
Click to show internal directories.
Click to hide internal directories.