orb_fdw
orb_fdw · A foreign data wrapper for Orb
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100802 | orb_fdw | orb_fdw | 0.13.3 | FDW | PostgreSQL | Rust |
PostgreSQL · 14, 15, 16, 17
Usage
Sources:
orb_fdw version 0.13.3 is a read-only foreign data wrapper for querying selected Orb billing objects through the Orb API.
Core Workflow
The server accepts api_key; when omitted, the server process reads ORB_API_KEY. A foreign table must set object to one of customers, subscriptions, or invoices. Define only documented column names and compatible PostgreSQL types; attrs retains the full response object.
Operational Boundaries
The implementation provides scan callbacks only, so treat it as read-only. It paginates the remote API, while PostgreSQL applies filters, sorting, and limits locally; a selective-looking query can therefore make many network requests.
An API key stored in server options is visible to sufficiently privileged catalog readers; prefer the process environment where operationally acceptable and restrict server/table ownership. Plan for HTTPS failures, Orb API schema changes, quotas, rate limits, and latency. The upstream README describes an earlier 0.13.0 prerequisite while the reviewed Rust manifest is 0.13.3; test the packaged build rather than assuming README compatibility.