query

package
v0.510.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionMetadataKey = internal.MetadataKey(transactionMetadataString)
)

Variables

This section is empty.

Functions

func BeginTransaction

func BeginTransaction(ctx context.Context, dbName string) (string, error)

func CommitCurrentTransaction

func CommitCurrentTransaction(ctx context.Context, dbName string) error

func Exec

func Exec[Req any](ctx context.Context, dbName string, rawSQL string, params []any, colFieldNames []tuple.Pair[string, string]) error

func GetTransactionMetadata

func GetTransactionMetadata(txnID string) *ftlv1.Metadata_Pair

func Many

func Many[Req, Resp any](ctx context.Context, dbName string, rawSQL string, params []any, colFieldNames []tuple.Pair[string, string]) ([]Resp, error)

func One

func One[Req, Resp any](ctx context.Context, dbName string, rawSQL string, params []any, colFieldNames []tuple.Pair[string, string]) (resp Resp, err error)

func RollbackCurrentTransaction

func RollbackCurrentTransaction(ctx context.Context, dbName string) error

Types

type InlineQueryClient

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

InlineQueryClient is used to perform queries by the unit test harness. It executes the query server logic in-process and does not require network communication.

func NewInlineQueryClient

func NewInlineQueryClient(service *iquery.Service) *InlineQueryClient

func (*InlineQueryClient) Ping

Jump to

Keyboard shortcuts

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