extensions

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(name string) (*extdef.Extension, error)

Get returns the emulated extension with the given name, or an error if Doltgres does not emulate it.

func GetAccessMethod added in v1.3.0

func GetAccessMethod(name string) (extdef.AccessMethod, bool)

GetAccessMethod returns the index access method registered under the given name.

func GetAll

func GetAll() map[string]*extdef.Extension

GetAll returns every extension that Doltgres emulates, keyed by name. The map must not be modified.

func GetDefaultOperatorClass added in v1.3.0

func GetDefaultOperatorClass(accessMethod string, typeName string) (extdef.OperatorClass, bool)

GetDefaultOperatorClass returns the default operator class for the given type under the given access method.

func GetDistanceType added in v1.3.0

func GetDistanceType(extensionName string, symbol string) vector.DistanceType

GetDistanceType returns the distance type of the given routine, or nil when the routine is not a distance routine.

func GetFunction

func GetFunction(extensionName string, symbol string) (extdef.Function, error)

GetFunction returns the implementation of the given symbol within the given extension.

func GetOperatorClass added in v1.3.0

func GetOperatorClass(name string) (extdef.OperatorClass, bool)

GetOperatorClass returns the operator class registered under the given name.

func GetOperatorClassForIndex added in v1.3.0

func GetOperatorClassForIndex(typeName string, distanceType vector.DistanceType) (extdef.OperatorClass, bool)

GetOperatorClassForIndex returns the operator class declared for the given type whose distance type serves the given metric.

func GetRoutine added in v1.3.0

func GetRoutine(name string, paramCount int) (extdef.Routine, bool)

GetRoutine returns the routine matching the given name and parameter count within any registered extension.

func Init

func Init()

Init adds every emulated extension to the registry, making them installable through CREATE EXTENSION.

func Register added in v1.2.0

func Register(ext *extdef.Extension)

Register adds the given extension to the registry.

Types

This section is empty.

Directories

Path Synopsis
uuid-ossp
vector

Jump to

Keyboard shortcuts

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