Documentation ¶
Overview ¶
数据库操作库
Index ¶
- type ArcDB
- type ArcMDao
- func (a *ArcMDao) Add(catid uint, title string, context string) error
- func (a *ArcMDao) Del(id uint) error
- func (a *ArcMDao) FindAll() ([]ArcDB, error)
- func (a *ArcMDao) FindByCatID(catid uint) ([]ArcDB, error)
- func (a *ArcMDao) FindByID(id uint) (*ArcDB, error)
- func (a *ArcMDao) FindsByNum(num uint) ([]ArcDB, error)
- func (a *ArcMDao) UpdateCat(catID uint, mvCatId uint) error
- type CatDB
- type CatMDao
- type Model
- type PagMDao
- type PageDB
- type TweMDao
- type TweetDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct { ArcDao *ArcMDao CatDao *CatMDao PagDao *PagMDao TweDao *TweMDao // contains filtered or unexported fields }
func NewDatabase ¶
创建一个新的数据库操作器
func (*Model) SetMaxIdleConns ¶
func (*Model) SetMaxOpenConns ¶
Click to show internal directories.
Click to hide internal directories.