harness

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresqlServerHarness

type PostgresqlServerHarness struct {
	// contains filtered or unexported fields
}

sqllogictest harness for postgres databases.

func NewPostgresqlHarness

func NewPostgresqlHarness(dsn string) *PostgresqlServerHarness

NewPostgresqlHarness returns a new Postgres test harness for the data source name given. Panics if it cannot open a connection using the DSN.

func (*PostgresqlServerHarness) EngineStr

func (h *PostgresqlServerHarness) EngineStr() string

func (*PostgresqlServerHarness) ExecuteQuery

func (h *PostgresqlServerHarness) ExecuteQuery(statement string) (schema string, results []string, err error)

See Harness.ExecuteQuery

func (*PostgresqlServerHarness) ExecuteStatement

func (h *PostgresqlServerHarness) ExecuteStatement(statement string) error

See Harness.ExecuteStatement

func (*PostgresqlServerHarness) Init

func (h *PostgresqlServerHarness) Init() error

Jump to

Keyboard shortcuts

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