Versions in this module Expand all Collapse all v0 v0.2.0 May 23, 2019 Changes in this version type BookBrick + func (b *BookBrick) AddOne(args *Book) (sql.Result, error) + func (b *BookBrick) DeleteByIdAndUid(args interface{}) (int64, error) type UserBrick + func (b *UserBrick) UnionSelect(dest interface{}) error v0.1.0 Jul 12, 2018 Changes in this version + type Book struct + Content typex.NullString + CreateTime typex.NullTime + Id int32 + Name string + Price int + Uid int32 + type BookBrick struct + func (b *BookBrick) ComplexUpdate(args *Book) (int64, error) + func (b *BookBrick) CountBooks(dest interface{}, uid interface{}) error + func (b *BookBrick) CreateBook() error + func (b *BookBrick) DeleteById(id interface{}) (int64, error) + func (b *BookBrick) InsertOne(args *Book) (sql.Result, error) + func (b *BookBrick) SelectAll(dest interface{}) error + func (b *BookBrick) SelectById(dest interface{}, id interface{}) error + func (b *BookBrick) SelectByUid(dest interface{}, uid interface{}) error + func (b *BookBrick) UpdateSomeThing(args *Book) (int64, error) + type BookBrickTx struct + func (b *BookBrickTx) TxDeleteById(id interface{}) (int64, error) + func (b *BookBrickTx) TxInsert(args *Book) (sql.Result, error) + func (b *BookBrickTx) TxSelect(dest interface{}, uid interface{}) error + func (b *BookBrickTx) TxUpdate(args *Book) (int64, error) + type BrickTx struct + Book *BookBrickTx + User *UserBrickTx + func (b *BrickTx) Commit() error + type SqlBrick struct + Book *BookBrick + Db *sqlx.DB + User *UserBrick + func NewSqlBrick(db *sqlx.DB) *SqlBrick + func (b *SqlBrick) Begin() (*BrickTx, error) + type User struct + Age int + Id int32 + Name string + type UserBrick struct + func (b *UserBrick) CountAll(dest interface{}) error + func (b *UserBrick) CreateUser() error + func (b *UserBrick) SelectById(dest interface{}, id interface{}) error + type UserBrickTx struct + func (b *UserBrickTx) TxDelete(id interface{}) (int64, error) + func (b *UserBrickTx) TxInsert(args *User) (sql.Result, error)