Documentation ¶
Overview ¶
Package fixtures implements a Ruby on Rails style test fixtures suite
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenDB ¶
OpenDB setup a transactional db to automatically rollback db changes, it may panics if any error encountered
driverName is the actually underlying driver, for example, `mysql`
func RegisterEvaluator ¶
Types ¶
type Collection ¶
type Collection struct { DbName string `yaml:"db"` TableName string `yaml:"table_name"` Rows map[string]*Fixture `yaml:"rows"` }
Collection maps to a table
type Fixture ¶
type Fixture struct {
Columns map[string]interface{} // Columns fields and values of an single object
}
Directories ¶
Path | Synopsis |
---|---|
base
Package base defines common logic among different transational drivers
|
Package base defines common logic among different transational drivers |
txmysql
Package txmysql registers a txmysql sql driver
|
Package txmysql registers a txmysql sql driver |
txposgresql
Package txpostgresql registers a txpostgresql sql driver
|
Package txpostgresql registers a txpostgresql sql driver |
Click to show internal directories.
Click to hide internal directories.