sqlx

package
v2.38.0-RC1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0, BSD-3-Clause, MIT Imports: 1 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"
)

Variables

View Source
var DefaultExpansionAddr string = xlangx.UseAutomatedJavaExpansionService(serviceGradleTarget)

DefaultExpansionAddr sets the default expansion address for cross-language SQL transforms to route through the automated exansion service start-up process, enabling it by default.

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