Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
This section is empty.
Types ¶
type SshHostsModel ¶
type SshHostsModel interface {
RowBuilder() squirrel.SelectBuilder
CountBuilder(field string) squirrel.SelectBuilder
DeleteStatus(ctx context.Context, addr string) error
FindOneByQuery(ctx context.Context, rowBuilder squirrel.SelectBuilder) (*SshHosts, error)
FindCount(ctx context.Context, countBuilder squirrel.SelectBuilder) (int64, error)
FindPageListByPage(ctx context.Context, rowBuilder squirrel.SelectBuilder, page, pageSize int64, orderBy string) ([]SshHosts, error)
// contains filtered or unexported methods
}
SshHostsModel is an interface to be customized, add more methods here, and implement the added methods in customSshHostsModel.
func NewSshHostsModel ¶
func NewSshHostsModel(conn sqlx.SqlConn) SshHostsModel
NewSshHostsModel returns a model for the database table.
Click to show internal directories.
Click to hide internal directories.