@postgrestx/core
v0.2.1
Published
Minimal PostgREST client: typed options, preferences, error normalization.
Readme
@postgrestx/core
Minimal PostgREST client: typed options, preferences, error normalization.
👉 Full docs: https://samuelagm.github.io/postgrestx/core • API: https://samuelagm.github.io/postgrestx/api/core/src/README
Install
pnpm add @postgrestx/coreTiny Example
import { PostgrestClient, createFetchHttpClient } from '@postgrestx/core'
const client = new PostgrestClient(
'https://example.com',
createFetchHttpClient(),
)
const { data } = await client.select('people', { select: 'id,name', limit: 10 })See docs for filters, ranges, mutations, RPC, preferences, and type generation.
Type Generation (CLI)
pnpm --filter @postgrestx/core exec postgrestx-generate --input openapi.json --out packages/core/src/types/generatedMore usage & testing hooks in the documentation.
License
MIT
