Documentation
¶
Overview ¶
Package dbtest implements database test functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DropSchema = flag.Bool("dropschema", true, "drop test schema if test ran successfully")
DropSchema will drop the test schema after execution. if set to true (default), the test schema will be dropped after successful test execution. if set to false, the test schema will remain on database after test execution.
var DropSchemas = flag.Bool("dropschemas", false, "drop all existing test schemas if test ran successfully")
DropSchemas will drop all schemas with GoHDBTestSchemaPrefix prefix to clean-up all not yet deleted test schemas created by go-hdb unit tests.
var Schema = flag.String("schema", testGoHDBSchemaPrefix+rand.AlphanumString(16), "database schema")
Schema defines the database schema where test tables are going to be created.
Functions ¶
func LogDriverStats ¶
LogDriverStats outputs the driver statistics.
func QueryInvalidConnectAttempts ¶
QueryInvalidConnectAttempts returns the number of invalid connection attempts.
func QuerySessionVariables ¶
QuerySessionVariables returns a map of current session variables.
Types ¶
This section is empty.