extdef

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Control

type Control struct {
	DefaultVersion string
	Comment        string
	Requires       []string
	Superuser      bool
	Trusted        bool
	Relocatable    bool
	Schema         string
}

Control holds the information that an extension declares in its control file. https://www.postgresql.org/docs/15/extend-extensions.html#id-1.8.3.20.11

type Extension

type Extension struct {
	Name     string
	Control  Control
	Routines []Routine
}

Extension is a Postgres extension that Doltgres emulates.

type Function

type Function func(ctx *sql.Context, args ...any) (any, error)

Function is the Go implementation of a single function that an extension provides.

type Parameter

type Parameter struct {
	Name string
	Type string
}

Parameter is a single input parameter of a routine.

type Routine

type Routine struct {
	Name       string
	Symbol     string
	Parameters []Parameter
	Returns    string
	Strict     bool
	Impl       Function
}

Routine is a function that an extension provides. Symbol is its C link symbol, which is unique within the extension.

Jump to

Keyboard shortcuts

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