Oliphaunt

API Reference

React Native SDK API map for TypeScript, config plugin, TurboModule, JSI binary transport, and mobile lifecycle.

Use the TypeDoc reference for exact declarations. This page maps the React Native SDK by task.

AreaPublic surfaceUse it for
OpeningOliphaunt.open, OpenConfigOpen a nativeDirect database from TypeScript with root, durability, and selected extensions
Config pluginExpo plugin optionsInclude the selected native runtime and exact extension artifacts in iOS and Android builds
Platform supportsupportedModes(), capabilities()Read what the installed Swift or Kotlin runtime can actually do
Database handleOliphauntDatabaseKeep the opened database in app state and route calls through one native handle
SQLquery, execute, QueryResultRun SQL and read typed values from JavaScript
Raw protocolexecProtocolRawSend PostgreSQL protocol bytes through JSI ArrayBuffer transport
StreamingexecProtocolStreamReceive large protocol responses as native-backed chunks
LifecycleprepareForBackground, resumeFromBackground, closeCoordinate database work with app background and foreground transitions
Data movementbackup, restoreDelegate archive validation and root materialization to Swift or Kotlin
Package reportpackage-size and extension artifact reportsVerify that the app ships only selected extensions and target ABIs
ErrorsOliphauntError, PostgresErrorHandle SDK errors and PostgreSQL SQLSTATE data in TypeScript

The React Native SDK owns the JavaScript boundary. Runtime behavior remains platform-native: Apple calls flow through Swift, Android calls flow through Kotlin.