harness

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DoltgresHarness added in v0.4.0

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

DoltgresHarness is sqllogictest harness for doltgres databases.

func NewDoltgresHarness added in v0.4.0

func NewDoltgresHarness(doltgresExec string, t int64) *DoltgresHarness

NewDoltgresHarness returns a new Doltgres test harness for the data source name given. It starts doltgres server and handles every connection to it.

func (*DoltgresHarness) ClearServer added in v0.4.0

func (h *DoltgresHarness) ClearServer()

ClearServer closes the connection to the server and the server if either exists.

func (*DoltgresHarness) Close added in v0.4.0

func (s *DoltgresHarness) Close() error

func (*DoltgresHarness) EngineStr added in v0.4.0

func (h *DoltgresHarness) EngineStr() string

func (*DoltgresHarness) ExecuteQuery added in v0.4.0

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

func (*DoltgresHarness) ExecuteStatement added in v0.4.0

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

func (*DoltgresHarness) GetTimeout added in v0.4.0

func (h *DoltgresHarness) GetTimeout() int64

func (*DoltgresHarness) Init added in v0.4.0

func (h *DoltgresHarness) Init() error

type DoltgresServer added in v0.4.0

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

func (*DoltgresServer) Close added in v0.4.0

func (s *DoltgresServer) Close()

func (*DoltgresServer) Start added in v0.4.0

func (s *DoltgresServer) Start()

func (*DoltgresServer) Stop added in v0.4.0

func (s *DoltgresServer) Stop()

type PostgresqlServerHarness

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

sqllogictest harness for postgres databases.

func NewPostgresqlHarness

func NewPostgresqlHarness(dsn string, t int64) *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) GetTimeout added in v0.4.0

func (h *PostgresqlServerHarness) GetTimeout() int64

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