Extension development
Amphi extensions register capabilities, types, functions, hooks, and optional storage adapters through an extension manifest. Keep registration, runtime hooks, and event delivery as separate concerns so each can be tested independently.
The built-in extensions are amphi-gis, amphi-fts, amphi-audit, and amphi-openai. Enable an extension explicitly and verify its catalog entries before using its SQL functions.
Extension code must validate input, avoid leaking secrets in errors, and preserve deterministic behavior in tests. See the individual pages for audit, full-text, GIS, and hook APIs. The OpenAI extension preview documents the external API function and its administrator-only connection restriction.
Procedural languages
Each language extension must keep its lexer, parser, checker, compiler, runtime, and adapters inside
its own package. The core provides only the generic LanguageHandler contract and SQL,
transaction, cancellation, and notice services. A Rust provider can register its handler with
ExtensionProvider::with_language_loader and be passed through EngineOptions::extension_providers
before opening the engine. This enables CREATE FUNCTION and DO blocks and lets the engine
recompile persisted functions at startup, restore, and restart. CREATE EXTENSION installs catalog
metadata; the embedding application must still ship and register the provider. The contract is an
in-process Rust API, not yet an ABI for binary plugins or languages implemented in other
programming languages. See the
procedural language host contract.