Versions in this module Expand all Collapse all v1 v1.0.0 May 31, 2022 Changes in this version + func LoggerError(err error) + type Model struct + TableName string + func NewModel(tb string) *Model + func (m *Model) Count(req interface{}, resp interface{}) (err error) + func (m *Model) Get(req interface{}, resp interface{}) (err error) + func (m *Model) Insert(req, resp interface{}) (err error) + func (m *Model) Select(req, resp interface{}) (err error) + func (m *Model) Update(req, resp interface{}) (err error) + type SqlExec struct + Master sqlx.DB + Parse *SqlParse + Replica sqlx.DB + Result interface{} + TableName string + func NewSqlExec(req, resp interface{}, tb string) *SqlExec + func (s *SqlExec) Count() error + func (s *SqlExec) CountMaster() error + func (s *SqlExec) Find() error + func (s *SqlExec) FindMaster() error + func (s *SqlExec) Insert() error + func (s *SqlExec) Select() error + func (s *SqlExec) SelectMaster() error + func (s *SqlExec) Update() error + type SqlParse struct + InsertColumns string + InsertValues []interface{} + Limit uint64 + OrderBy string + Page uint64 + SelectColumns string + UpdateColumns map[string]interface{} + Where []interface{} + func (s *SqlParse) Condition(key reflect.StructField, value reflect.Value) + func (s *SqlParse) Parse(i interface{}) + type UserModel struct + func NewUserModel() *UserModel