Documentation
¶
Index ¶
- type MysqlAsserter
- func (pa *MysqlAsserter) ColumnExists(t testingT, table, column string) bool
- func (pa *MysqlAsserter) ColumnNotExists(t testingT, table, column string) bool
- func (pa *MysqlAsserter) ColumnOfType(t testingT, table, column, dataType string) bool
- func (pa *MysqlAsserter) ConstraintExists(t testingT, table, constraint string) bool
- func (pa *MysqlAsserter) ConstraintNotExists(t testingT, table, constraint string) bool
- func (pa *MysqlAsserter) IndexExists(t testingT, table, index string) bool
- func (pa *MysqlAsserter) IndexNotExists(t testingT, table, index string) bool
- func (pa *MysqlAsserter) RowExists(t testingT, table string, colVals map[string]interface{}) bool
- func (pa *MysqlAsserter) RowNotExists(t testingT, table string, colVals map[string]interface{}) bool
- func (pa *MysqlAsserter) TableExists(t testingT, table string) bool
- func (pa *MysqlAsserter) TableNotExists(t testingT, table string) bool
- type PostgresAsserter
- func (pa *PostgresAsserter) ColumnExists(t testingT, table, column string) bool
- func (pa *PostgresAsserter) ColumnNotExists(t testingT, table, column string) bool
- func (pa *PostgresAsserter) ColumnOfType(t testingT, table, column, dataType string) bool
- func (pa *PostgresAsserter) ConstraintExists(t testingT, table, constraint string) bool
- func (pa *PostgresAsserter) ConstraintNotExists(t testingT, table, constraint string) bool
- func (pa *PostgresAsserter) IndexExists(t testingT, table, index string) bool
- func (pa *PostgresAsserter) IndexNotExists(t testingT, table, index string) bool
- func (pa *PostgresAsserter) RowExists(t testingT, table string, colVals map[string]interface{}) bool
- func (pa *PostgresAsserter) RowNotExists(t testingT, table string, colVals map[string]interface{}) bool
- func (pa *PostgresAsserter) TableExists(t testingT, table string) bool
- func (pa *PostgresAsserter) TableNotExists(t testingT, table string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MysqlAsserter ¶ added in v0.0.2
type MysqlAsserter struct {
// contains filtered or unexported fields
}
MysqlAsserter contains assertion helpers for mysqlql databases
func NewMysqlAsserter ¶ added in v0.0.2
func NewMysqlAsserter(db *sql.DB) *MysqlAsserter
func (*MysqlAsserter) ColumnExists ¶ added in v0.0.2
func (pa *MysqlAsserter) ColumnExists(t testingT, table, column string) bool
func (*MysqlAsserter) ColumnNotExists ¶ added in v0.0.2
func (pa *MysqlAsserter) ColumnNotExists(t testingT, table, column string) bool
func (*MysqlAsserter) ColumnOfType ¶ added in v1.1.0
func (pa *MysqlAsserter) ColumnOfType(t testingT, table, column, dataType string) bool
func (*MysqlAsserter) ConstraintExists ¶ added in v0.0.2
func (pa *MysqlAsserter) ConstraintExists(t testingT, table, constraint string) bool
func (*MysqlAsserter) ConstraintNotExists ¶ added in v0.0.2
func (pa *MysqlAsserter) ConstraintNotExists(t testingT, table, constraint string) bool
func (*MysqlAsserter) IndexExists ¶ added in v0.0.2
func (pa *MysqlAsserter) IndexExists(t testingT, table, index string) bool
func (*MysqlAsserter) IndexNotExists ¶ added in v0.0.2
func (pa *MysqlAsserter) IndexNotExists(t testingT, table, index string) bool
func (*MysqlAsserter) RowExists ¶ added in v0.0.2
func (pa *MysqlAsserter) RowExists(t testingT, table string, colVals map[string]interface{}) bool
func (*MysqlAsserter) RowNotExists ¶ added in v0.0.2
func (pa *MysqlAsserter) RowNotExists(t testingT, table string, colVals map[string]interface{}) bool
func (*MysqlAsserter) TableExists ¶ added in v0.0.2
func (pa *MysqlAsserter) TableExists(t testingT, table string) bool
func (*MysqlAsserter) TableNotExists ¶ added in v0.0.2
func (pa *MysqlAsserter) TableNotExists(t testingT, table string) bool
type PostgresAsserter ¶
type PostgresAsserter struct {
// contains filtered or unexported fields
}
PostgresAsserter contains assertion helpers for Postgresql databases
func NewPostgresAsserter ¶
func NewPostgresAsserter(db *sql.DB) *PostgresAsserter
func (*PostgresAsserter) ColumnExists ¶
func (pa *PostgresAsserter) ColumnExists(t testingT, table, column string) bool
func (*PostgresAsserter) ColumnNotExists ¶
func (pa *PostgresAsserter) ColumnNotExists(t testingT, table, column string) bool
func (*PostgresAsserter) ColumnOfType ¶ added in v1.1.0
func (pa *PostgresAsserter) ColumnOfType(t testingT, table, column, dataType string) bool
func (*PostgresAsserter) ConstraintExists ¶
func (pa *PostgresAsserter) ConstraintExists(t testingT, table, constraint string) bool
func (*PostgresAsserter) ConstraintNotExists ¶
func (pa *PostgresAsserter) ConstraintNotExists(t testingT, table, constraint string) bool
func (*PostgresAsserter) IndexExists ¶
func (pa *PostgresAsserter) IndexExists(t testingT, table, index string) bool
func (*PostgresAsserter) IndexNotExists ¶
func (pa *PostgresAsserter) IndexNotExists(t testingT, table, index string) bool
func (*PostgresAsserter) RowExists ¶
func (pa *PostgresAsserter) RowExists(t testingT, table string, colVals map[string]interface{}) bool
func (*PostgresAsserter) RowNotExists ¶
func (pa *PostgresAsserter) RowNotExists(t testingT, table string, colVals map[string]interface{}) bool
func (*PostgresAsserter) TableExists ¶
func (pa *PostgresAsserter) TableExists(t testingT, table string) bool
func (*PostgresAsserter) TableNotExists ¶
func (pa *PostgresAsserter) TableNotExists(t testingT, table string) bool
Click to show internal directories.
Click to hide internal directories.