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.
Click to show internal directories.
Click to hide internal directories.