sqlx

package
v2.36.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0, BSD-3-Clause, MIT Imports: 0 Imported by: 0

Documentation

Overview

Package sqlx contains "internal" SQL transform interfaces that are needed by the SQL expansion providers.

The purposes of introducing a separate package from sql are: - to separate these "internal" APIs from the user-facing ones; - to break potential circular dependencies: sql -> default expansion service/handler -> sql.

Index

Constants

View Source
const (
	// Urn is the URN for SQL transforms.
	Urn = "beam:external:java:sql:v1"

	// DefaultExpansionAddr is the default expansion service address for SQL.
	// TODO: Change this to the Beam Java expansion address once Beam SQL
	// is implemented in Beam Go.
	DefaultExpansionAddr = "undefined"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpansionPayload

type ExpansionPayload struct {
	Query   string `beam:"query"`
	Dialect string `beam:"dialect"`
	// contains filtered or unexported fields
}

ExpansionPayload is the struct of the payload encoded in ExpansionRequest.

type Option

type Option struct {
	Urn     string `beam:"urn"`
	Payload []byte `beam:"payload"`
}

Option represents a custom SQL transform option. The option provider is responsible for marshaling and unmarshaling the option.

type Options

type Options interface {
	// Add adds a custom option.
	Add(opt Option)
}

Options is the interface for adding SQL transform options.

Jump to

Keyboard shortcuts

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