Documentation
¶
Overview ¶
Package custom contains compiled extension patterns; it adds no core dependencies.
Index ¶
- func ExtensionDistribution(dir string, prepare postgres.Hook) postgres.Config
- func Migrations(run func(context.Context, string) (func(context.Context) error, error)) postgres.Hook
- func Mirror(cache, baseURL string, transport http.RoundTripper) postgres.BinaryProvider
- func Offline(cache string) postgres.BinaryProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtensionDistribution ¶
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.