testconfig

package
v2.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package testconfig 为测试内容提供一个统一的数据库环境

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseDB

func CloseDB(db *orm.DB, a *assert.Assertion, dropTable ...interface{})

CloseDB 销毁数据库。

如果数据库类型为 sqlite3,则还会删除数据库文件。

func NewDB

func NewDB(a *assert.Assertion) *orm.DB

NewDB 声明 orm.DB 实例

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL