concurrentselect

package
v0.0.0-...-c297b23 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Username string `` /* 134-byte string literal not displayed */
	Password string `` /* 134-byte string literal not displayed */
	JWTToken string `name:"token" help:"JWT token to use for authentication. To be used instead of username and password." env:"SD_TOKEN"`

	Database string `short:"d" name:"database" required:"" help:"Database to execute queries against." env:"SD_DATABASE"`
	Server   string `short:"s" name:"server" required:"" help:"URL of the Stardog server." env:"SD_SERVER"`

	Query     string   `` /* 128-byte string literal not displayed */
	QueryFile *os.File `short:"f" name:"file" required:"" help:"File containing the query to execute." group:"Query Flags" xor:"Query Flags"`
	Timeout   int      `short:"t" name:"timeout" help:"Timeout in milliseconds for the provided query."`
	Reasoning bool     `short:"r" name:"reasoning" default:"false" help:"Enable reasoning for the provided query."`

	NumConcurrentQueries int    `short:"c" name:"concurrent-queries" required:"" help:"Number of concurrent queries to execute."`
	Format               string `name:"format" enum:"table,csv" default:"table" help:"Result format of benchmark results. Valid formats are 'table' or 'csv'."`
	PrintQuery           bool   `name:"print-query" help:"Print the query executed before the results."`
}

func (Options) Run

func (o Options) Run() error

Run runs the bench-select command.

Jump to

Keyboard shortcuts

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