示例#1
0
文件: dao.go 项目: goatcms/goat-core
// FindByID obtain article of given ID from database
func (dao *BaseDAO) FindByID(tx db.TX, id int64) *sqlx.Row {
	return tx.QueryRowx(dao.Table.selectByIDSQL, id)
}