Skip to content

Data

Your tables as an API, protected by row-level security, plus SQL and migrations over HTTPS, on any Postgres.

Applies to EngineCloud
View as Markdown

Your data is in Postgres, in ordinary tables. The engine gives it three doors, and the same rules guard all three.

  • The Data API

    Every table and view as REST, filtered, sorted, paged and joined in the URL, compatible with PostgREST's syntax.

  • Row-level security

    How each request runs as a database role with the caller's claims, the helper functions your policies use, and patterns for users, teams and machines.

  • SQL and migrations

    Run SQL over HTTPS, apply and track migrations, and read your schema as JSON, for servers, the console and agents.

  • Any Postgres

    What the engine needs from a database, what it installs in it, and how to install it by hand when your database is locked down.

  • @sypnia/data, the package

    One package for browsers, phones and servers: /client for auth and data, /server for secret keys, machines and direct Postgres, and the CLI.

  • Use any ORM

    Sypnia Data is plain Postgres. Use plain SQL, Prisma, Drizzle, Sypnorm or nothing at all, and mix them.

DoorForRuns as
The Data API /rest/v1apps, ORMs that use the API (Sypnorm), agentsthe caller’s role, under row-level security
SQL /sql/v1servers, the console, agents with sql:*sypnia_admin, the owner of your schemas
A direct connectionyour servers, migrations tools, BIwhatever user you connect as

    Search pages, sections and terms