Tables and SQL
The table editor, the SQL editor, the schema view and the policies editor.
The table editor
- A grid that stays fast with millions of rows: it loads what you see, pages the rest.
- Edit a cell in place, add a row, delete rows, filter and sort by any column; each change is a Data API call you can copy as
curlor as code. - Create a table or change one: columns with their types, defaults and nullability, primary key, foreign keys to other tables (or to
sypnia_auth.users), indexes. - Row-level security is on for every table you create here. The editor warns about any exposed table without it.
The SQL editor
- Autocomplete from your schema: tables, columns, functions.
- Run everything, or only the selected text; several statements give several result tabs.
- Results in a grid you can sort, copy or download.
- Saved snippets, yours or shared with the project, and the history of what you ran.
- A read-only switch for when you only want to look.
Schema and policies
- Schema: every table and view with its columns and relations, and a small diagram of the relations.
- Policies: per table, the row-level security policies, in plain words and in SQL. Start from a template — only the owner, everyone can read, members of a team — and edit it.