Documentation
¶
Index ¶
- func Get(name string) (*extdef.Extension, error)
- func GetAccessMethod(name string) (extdef.AccessMethod, bool)
- func GetAll() map[string]*extdef.Extension
- func GetDefaultOperatorClass(accessMethod string, typeName string) (extdef.OperatorClass, bool)
- func GetDistanceType(extensionName string, symbol string) vector.DistanceType
- func GetFunction(extensionName string, symbol string) (extdef.Function, error)
- func GetOperatorClass(name string) (extdef.OperatorClass, bool)
- func GetOperatorClassForIndex(typeName string, distanceType vector.DistanceType) (extdef.OperatorClass, bool)
- func GetRoutine(name string, paramCount int) (extdef.Routine, bool)
- func Init()
- func Register(ext *extdef.Extension)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
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 ¶
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 ¶
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
GetRoutine returns the routine matching the given name and parameter count within any registered extension.
Types ¶
This section is empty.