testing

package
v0.0.0-...-3979f71 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupPostgres

func SetupPostgres(t *testing.T) (*pgxpool.Pool, string, func())

SetupPostgres starts a gnomock postgres DB then returns the database object, the connection string and a shutdown function.

func SetupPostgresWithSchema

func SetupPostgresWithSchema(t *testing.T) (*pgxpool.Pool, string, func())

SetupPostgresWithSchema is equivalent to SetupPostgres() but also creates the indexer schema.

Types

This section is empty.

Jump to

Keyboard shortcuts

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