sql

package module
v0.0.0-...-c585fb0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

xk6-sql

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database string
const (
	Mysql     Database = "mysql"
	Postgres  Database = "postgres"
	Sqlite    Database = "sqlite3"
	SqlServer Database = "sqlserver"
	Snowflake Database = "snowflake"
)

type RootModule

type RootModule struct{}

func (*RootModule) NewModuleInstance

func (*RootModule) NewModuleInstance(vu modules.VU) modules.Instance

type SQL

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

func (*SQL) Exports

func (sql *SQL) Exports() modules.Exports

func (*SQL) Open

func (*SQL) Open(database Database, connectionString string) (*sql.DB, error)

func (*SQL) Query

func (*SQL) Query(db *sql.DB, query string, args ...interface{}) ([]keyValue, error)

Jump to

Keyboard shortcuts

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