db

package
v0.0.0-...-fb9541f Latest Latest
Warning

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

Go to latest
Published: Mar 27, 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 horizon and so should be able to be imported by any horizon package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Horizon

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

Horizon returns a connection to the horizon test database

func HorizonURL

func HorizonURL() string

HorizonURL returns the database connection the url any test use when connecting to the history/horizon database

func PaydexCore

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

PaydexCore returns a connection to the paydex core test database

func PaydexCoreURL

func PaydexCoreURL() string

PaydexCoreURL returns the database connection the url any test use when connecting to the paydex-core database

Types

This section is empty.

Jump to

Keyboard shortcuts

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