Documentation
¶
Index ¶
- func CreateDBEngine() (engine *xorm.Engine, err error)
- func CreateTestEngine() (engine *xorm.Engine, err error)
- func Dump() (data map[string][]byte, err error)
- func InitFixtures(tablenames ...string) (err error)
- func InitTestFixtures(tablenames ...string) (err error)
- func LoadAndAssertFixtures(t *testing.T)
- func LoadFixtures() error
- func RegisterTableStructsForCache(val interface{})
- func Restore(table string, contents []map[string]interface{}) (err error)
- func WipeEverything() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDBEngine ¶
CreateDBEngine initializes a db engine from the config
func CreateTestEngine ¶
CreateTestEngine creates an instance of the db engine which lives in memory
func InitFixtures ¶
InitFixtures initialize test fixtures for a test database
func InitTestFixtures ¶
InitTestFixtures populates the db with all fixtures from the fixtures folder
func LoadAndAssertFixtures ¶
LoadAndAssertFixtures loads all fixtures defined before and asserts they are correctly loaded
func RegisterTableStructsForCache ¶
func RegisterTableStructsForCache(val interface{})
RegisterTableStructsForCache registers tables in gob encoding for redis cache
func WipeEverything ¶ added in v0.14.0
func WipeEverything() error
WipeEverything wipes all tables and their data. Use with caution...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.