custom

package
v2.0.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package custom contains compiled extension patterns; it adds no core dependencies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtensionDistribution

func ExtensionDistribution(dir string, prepare postgres.Hook) postgres.Config

ExtensionDistribution uses a complete caller-supplied PostgreSQL installation containing the extension's compiled libraries, control files, and SQL scripts. prepare can run CREATE EXTENSION using the caller's chosen database driver.

func Migrations

func Migrations(run func(context.Context, string) (func(context.Context) error, error)) postgres.Hook

Migrations adapts a caller-owned migration library without importing its driver into embedded-postgres. The caller supplies the connection pool cleanup.

func Mirror

func Mirror(cache, baseURL string, transport http.RoundTripper) postgres.BinaryProvider

Mirror reuses the standard verified extraction and cache implementation with a caller-owned transport (proxy, client certificate, authentication, etc.).

func Offline

func Offline(cache string) postgres.BinaryProvider

Offline uses an already-prefetched cache. It never falls back to networking.

Types

This section is empty.

Jump to

Keyboard shortcuts

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