test

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestMySQLDB

func NewTestMySQLDB() (*sqlx.DB, error)

NewTestMySQLDB creates a new MySQL database for testing. It neeeds mysql to be running on localhost:3306 with root user having no password.

func NewTestSQLiteDB

func NewTestSQLiteDB() (*sqlx.DB, error)

NewTestSQLiteDB creates a new SQLite database for testing. It is an sqlite database in memory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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