plugin

package
v0.0.0-...-b8497f2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HandshakeConfig = plugin.HandshakeConfig{
	ProtocolVersion:  1,
	MagicCookieKey:   "SQLTRACEBENCH_PLUGIN",
	MagicCookieValue: "allow",
}

HandshakeConfig is the handshake config used by the host and the plugin.

View Source
var PluginMap = map[string]plugin.Plugin{
	"database_plugin": &grpc_impl.GRPCPluginImpl{},
}

PluginMap is the map of plugins that we can serve.

Functions

This section is empty.

Types

type DatabasePlugin

type DatabasePlugin interface {
	GetName() string
	TranslateQuery(sql string) (string, error)
	ConvertSchema(schema *models.Schema) (*models.Schema, error)
}

DatabasePlugin is the interface that we're exposing as a plugin. It matches the interface in plugins/interfaces.go but serves as a bridge for hashicorp/go-plugin.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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