Oliphaunt

API Reference

Swift SDK API map for Apple app storage, async database calls, lifecycle, and native resources.

Use the Swift DocC reference for exact declarations. This page maps the Apple SDK surface by task.

AreaPublic surfaceUse it for
OpeningOliphauntDatabase.open, OliphauntConfigurationOpen a persistent or temporary root with Apple-friendly defaults
Runtime modeOliphauntEngineMode, supportedModes()Discover modes advertised by the selected Apple target
CapabilitiesOliphauntCapabilitiesCheck protocol, streaming, backup, restore, lifecycle, and extension support
SQLquery, execute, OliphauntQueryResultRun SQL and read typed values by row and column
Raw protocolexecProtocolRaw, execProtocolStreamSend PostgreSQL protocol bytes without blocking the main actor
Transactionstransaction, OliphauntTransactionKeep transaction work on the actor-owned session
LifecycleprepareForBackground, resumeFromBackground, cancel, closeCoordinate database work with app lifecycle transitions
Data movementbackup, restore, OliphauntBackupRequestMove user data through validated archives and app-owned file URLs
ErrorsOliphauntError, OliphauntPostgresErrorHandle Swift errors and PostgreSQL SQLSTATE data

iOS and macOS apps start with OliphauntDatabase. The C ABI remains the lower-level boundary used by the Swift package.