db

package
v0.0.0-...-4b7be03 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package db provides helpers to connect to test databases. It has no internal dependencies on millennium and so should be able to be imported by any millennium package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AiBlocksCore

func AiBlocksCore(t *testing.T) *sqlx.DB

AiBlocksCore returns a connection to the aiblocks core test database

func AiBlocksCoreURL

func AiBlocksCoreURL() string

AiBlocksCoreURL returns the database connection the url any test use when connecting to the aiblocks-core database

func Millennium

func Millennium(t *testing.T) *sqlx.DB

Millennium returns a connection to the millennium test database

func MillenniumURL

func MillenniumURL() string

MillenniumURL returns the database connection the url any test use when connecting to the history/millennium database

Types

This section is empty.

Jump to

Keyboard shortcuts

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