The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Removes the "resources section"
Paul Copplestone261967c59650
diff --git a/vercel.json b/vercel.jsonindex c2fadb2dbee..f29cd06c730 100644--- a/vercel.json+++ b/vercel.json@@ -218,7 +218,11 @@{ "source": "/docs/pricing", "destination": "/pricing" },{ "source": "/docs/careers", "destination": "https://about.supabase.com/careers" },- { "source": "/docs/careers/:match*", "destination": "https://about.supabase.com/careers//:match*" }+ { "source": "/docs/careers/:match*", "destination": "https://about.supabase.com/careers//:match*" },++ { "source": "/docs/resources", "destination": "/docs/guides" }++],"trailingSlash": false}diff --git a/web/docs/guides/database.mdx b/web/docs/guides/database.mdxindex 39db091737c..2ebd1d3dc91 100644--- a/web/docs/guides/database.mdx+++ b/web/docs/guides/database.mdx@@ -47,7 +47,7 @@ Supabase comes with a SQL Editor. You can also save your favorite queries to run### Additional features-- Supabase extends Postgres with realtime functionality using our [Realtime Server](/docs/realtime/server/about).+- Supabase extends Postgres with realtime functionality using our [Realtime Server](https://github.com/supabase/realtime).- Every project is a full Postgres database, with `postgres` level access.- Managed backups - Supabase handles all your database backups.- Data imports - import directly from a CSV or excel spreadsheet.diff --git a/web/docs/guides/database/tables.mdx b/web/docs/guides/database/tables.mdxindex 61f5a035e01..8e5122f736f 100644--- a/web/docs/guides/database/tables.mdx+++ b/web/docs/guides/database/tables.mdx@@ -7,9 +7,7 @@ description: Creating and using Postgres tables.import Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';-In PostgreSQL, data is stored in "tables".--Tables are made of "columns" and "rows", similar to a spreadsheet. For example:+In PostgreSQL, data is stored in "tables". Tables are made of "columns" and "rows", similar to a spreadsheet. For example:| `id` | `name` | `description` || ---- | ---- | ----------- |@@ -23,15 +21,17 @@ This table has 3 "columns": `id`, `name`, and `description`, and 5 "rows" of dat## Designing tables-Before you can store the data you need to "design" the table.-This is different from NoSQL databases where you can immediately put any data in your database.+Before you can store data you need to "design" and create your tables.-There is a big benefit however: data integrity. PostgreSQL will guarantee that each table fits the rules that you specify.-As you scale, this will become incredibly important.+This is different from NoSQL databases where you can immediately put any data in your database.+There is a big benefit to this approach: data integrity. PostgreSQL guarantees that your data fits the rules that you specify.+As you scale, this becomes incredibly important.## Creating Tables-Supabase gives you several options for creating tables. You can use the Table Editor or create them directly using SQL.+Supabase gives you several options for creating tables. You can use the Table Editor or create them directly using SQL.+We provide a SQL editor within the Dashboard, or you can [connect](/docs/guides/database/connecting/connecting-to-postgres) to your database+and run the SQL queries yourself.<TabsdefaultValue="UI"diff --git a/web/docs/library/authentication.mdx b/web/docs/library/authentication.mdxdeleted file mode 100755index aa0fe138090..00000000000--- a/web/docs/library/authentication.mdx+++ /dev/null@@ -1,7 +0,0 @@-----id: authentication-title: Authentication-description: 'How to do Authentication with Supabase'------@todo\ No newline at end of filediff --git a/web/docs/library/examples/common.js b/web/docs/library/examples/common.jsdeleted file mode 100644index aa7a9d92c35..00000000000--- a/web/docs/library/examples/common.js+++ /dev/null@@ -1,16 +0,0 @@-/**- * Common snippets shared across all examples- */--export const importJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')-`--export const errorJs = `- } catch (error) {- console.log('Error: ', error)- }-}-`.trim()diff --git a/web/docs/postgrest/client/.gitkeep b/web/docs/postgrest/client/.gitkeepdeleted file mode 100644index e69de29bb2d..00000000000diff --git a/web/docs/postgrest/server/about.md b/web/docs/postgrest/server/about.mddeleted file mode 100644index 4646bea00fb..00000000000--- a/web/docs/postgrest/server/about.md+++ /dev/null@@ -1,95 +0,0 @@-----id: about-title: PostgREST API Server-description: 'PostgREST is a standalone web server that turns your PostgreSQL database directly into a RESTful API.'------PostgREST is a standalone web server that turns your PostgreSQL database directly into a RESTful API.--The structural constraints and permissions in the database determine the API endpoints and operations.--## Documentation--Latest documentation is at [postgrest.org](http://postgrest.org). You can contribute to the docs in [PostgREST/postgrest-docs](https://github.com/PostgREST/postgrest-docs).--## Performance--TLDR; subsecond response times for up to 2000 requests/sec on Heroku-free tier. If you're used to servers written in interpreted languages,-prepare to be pleasantly surprised by PostgREST performance.--Three factors contribute to the speed. First the server is written-in [Haskell](https://www.haskell.org/) using the-[Warp](http://www.yesodweb.com/blog/2011/03/preliminary-warp-cross-language-benchmarks)-HTTP server (aka a compiled language with lightweight threads).-Next it delegates as much calculation as possible to the database-including--- Serializing JSON responses directly in SQL-- Data validation-- Authorization-- Combined row counting and retrieval-- Data post in single command (`returning *`)--Finally it uses the database efficiently with the-[Hasql](https://nikita-volkov.github.io/hasql-benchmarks/) library-by--- Keeping a pool of db connections-- Using the PostgreSQL binary protocol-- Being stateless to allow horizontal scaling--## Security--PostgREST [handles-authentication](http://postgrest.org/en/stable/auth.html) (via JSON Web-Tokens) and delegates authorization to the role information defined in-the database. This ensures there is a single declarative source of truth-for security. When dealing with the database the server assumes the-identity of the currently authenticated user, and for the duration of-the connection cannot do anything the user themselves couldn't. Other-forms of authentication can be built on top of the JWT primitive. See-the docs for more information.--PostgreSQL 9.5 supports true [row-level-security](http://www.postgresql.org/docs/9.5/static/ddl-rowsecurity.html).-In previous versions it can be simulated with triggers and-security-barrier views. Because the possible queries to the database-are limited to certain templates using-[leakproof](http://blog.2ndquadrant.com/how-do-postgresql-security_barrier-views-work/)-functions, the trigger workaround does not compromise row-level-security.--## Versioning--A robust long-lived API needs the freedom to exist in multiple-versions. PostgREST does versioning through database schemas. This-allows you to expose tables and views without making the app brittle.-Underlying tables can be superseded and hidden behind public facing-views.--## Self-documentation--PostgREST uses the [OpenAPI](https://openapis.org/) standard to-generate up-to-date documentation for APIs. You can use a tool like-[Swagger-UI](https://github.com/swagger-api/swagger-ui) to render-interactive documentation for demo requests against the live API server.--This project uses HTTP to communicate other metadata as well. For-instance the number of rows returned by an endpoint is reported by --and limited with - range headers. More about-[that](http://begriffs.com/posts/2014-03-06-beyond-http-header-links.html).--## Data Integrity--Rather than relying on an Object Relational Mapper and custom-imperative coding, this system requires you put declarative constraints-directly into your database. Hence no application can corrupt your-data (including your API server).--The PostgREST exposes HTTP interface with safeguards to prevent-surprises, such as enforcing idempotent PUT requests.--See examples of [PostgreSQL-constraints](http://www.tutorialspoint.com/postgresql/postgresql_constraints.htm)-and the [API guide](http://postgrest.org/en/stable/api.html).diff --git a/web/docs/realtime/client/.gitkeep b/web/docs/realtime/client/.gitkeepdeleted file mode 100644index e69de29bb2d..00000000000diff --git a/web/docs/realtime/server/about.md b/web/docs/realtime/server/about.mddeleted file mode 100644index 2750e425fd4..00000000000--- a/web/docs/realtime/server/about.md+++ /dev/null@@ -1,112 +0,0 @@-----id: about-title: Realtime Server-description: 'Supabase Realtime is a Change Data Capture server'------Supabase Realtime is a Change Data Capture server. It allows you to listen to Postgres changes.--If you want to host your own Realtime server, you have options to host using Docker, AWS, DigitalOcean, or build from source.--#### What is this?--This is an Elixir server (Phoenix) that allows you to listen to changes in your database via websockets.--It works like this:--1. the Phoenix server listens to PostgreSQL's replication functionality (using Postgres' logical decoding)-2. it converts the byte stream into JSON-3. it then broadcasts over websockets.--#### Cool, but why not just use Postgres' `NOTIFY`?--A few reasons:--1. You don't have to set up triggers on every table-2. NOTIFY has a payload limit of 8000 bytes and will fail for anything larger. The usual solution is to send an ID then fetch the record, but that's heavy on the database-3. This server consumes one connection to the database, then you can connect many clients to this server. Easier on your database, and to scale up you just add realtime servers--#### What are the benefits?--1. The beauty of listening to the replication functionality is that you can make changes to your database from anywhere - your API, directly in the DB, via a console etc - and you will still receive the changes via websockets.-2. Decoupling. For example, if you want to send a new slack message every time someone makes a new purchase you might build that functionality directly into your API. This allows you to decouple your async functionality from your API.-3. This is built with Phoenix, an [extremely scalable Elixir framework](https://www.phoenixframework.org/blog/the-road-to-2-million-websocket-connections)--## Quick start--We have set up some simple examples that show how to use this server:--- [Next.js example](https://github.com/supabase/realtime/tree/master/examples/next-js)-- [NodeJS example](https://github.com/supabase/realtime/tree/master/examples/node-js)--## Client libraries--- JavaScript: [@supabase/realtime-js](https://github.com/supabase/realtime-js)--## Server--### Database set up--There are a some requirements for your database--1. It must be Postgres 10+ as it uses logical replication-2. Set up your DB for replication- 1. it must have the `wal_level` set to logical. You can check this by running `SHOW wal_level;`. To set the `wal_level`, you can call `ALTER SYSTEM SET wal_level = logical;`- 2. You must set `max_replication_slots` to at least 1: `ALTER SYSTEM SET max_replication_slots = 5;`-3. Create a `PUBLICATION` for this server to listen to: `CREATE PUBLICATION supabase_realtime FOR ALL TABLES;`-4. [OPTIONAL] If you want to receive the old record (previous values) on UPDATE and DELETE, you can set the `REPLICA IDENTITY` to `FULL` like this: `ALTER TABLE your_table REPLICA IDENTITY FULL;`. This has to be set for each table unfortunately.--### Server set up--The easiest way to get started is just to use our docker image. We will add more deployment methods soon.--```sh-# Update the environment variables to point to your own database-docker run \- -e DB_HOST='docker.for.mac.host.internal' \- -e DB_NAME='postgres' \- -e DB_USER='postgres' \- -e DB_PASSWORD='postgres' \- -e DB_PORT=5432 \- -e PORT=4000 \- -e HOSTNAME='localhost' \- -e SECRET_KEY_BASE='SOMETHING_SUPER_SECRET' \- -p 4000:4000 \- supabase/realtime-```--**OPTIONS**--```sh-DB_HOST # {string} Database host URL-DB_NAME # {string} Postgres database name-DB_USER # {string} Database user-DB_PASSWORD # {string} Database password-DB_PORT # {number} Database port-SLOT_NAME # {string} A unique name for Postgres to track where this server has "listened until". If the server dies, it can pick up from the last position. This should be lowercase.-PORT # {number} Port which you can connect your client/listeners-```--## Contributing--- Fork the repo on GitHub-- Clone the project to your own machine-- Commit changes to your own branch-- Push your work back up to your fork-- Submit a Pull request so that we can review your changes and merge--## Releasing--- Make a commit to bump the version in `mix.exs`-- Tag the commit--To trigger a release you must tag the commit, then push to origin.--```bash-git tag -a 0.x.x -m "Some release details / link to release notes"-git push origin 0.x.x-```--## License--This repo is licensed under Apache 2.0.diff --git a/web/docs/realtime/server/aws.md b/web/docs/realtime/server/aws.mddeleted file mode 100644index 46643f7d7c1..00000000000--- a/web/docs/realtime/server/aws.md+++ /dev/null@@ -1,48 +0,0 @@-----id: aws-title: AWS-description: 'Host your own Realtime server'------## Quick Install--You can use our AMI which is registered in the AWS Marketplace under the name [Supabase Realtime](https://aws.amazon.com/marketplace/pp/B089N4FH7N/).--Once the instance is up and running, you first need to point Realtime to listen to your PostgreSQL database. First, SSH to the instance, and edit `/etc/realtime/realtime.env`:--```bash-sudo nano /etc/realtime/realtime.env-```--You'll see some environment variables you need to set. If you use our [Supabase Postgres](https://aws.amazon.com/marketplace/pp/B08915TCJ2?ref_=srh_res_product_title) AMI, you simply need to set `DB_HOST` to the Postgres instance's public IP, `DB_PASSWORD` to the password you set with `\password postgres`, and `SECRET_KEY_BASE` to a randomly generated secret which you can get by running the command below:--```bash-openssl rand -base64 48-```--Now you need the Realtime service to use the newly set environment variables:--```bash-sudo systemctl daemon-reload && sudo systemctl restart realtime-```--You can now disconnect from SSH. Now you should be able to visit your Realtime endpoint at `http://your_realtime_ip:4000` and receive the greeting page, which means you're ready to subscribe to changes to your database with Realtime!--## Build from Scratch--Make sure you have Packer [installed](https://learn.hashicorp.com/packer/getting-started/install).--Set your AWS security credentials (you can create these [here](https://console.aws.amazon.com/iam/home?#security_credential)):--```bash-export AWS_ACCESS_KEY=youraccesskey-export AWS_SECRET_KEY=yoursecretkey-```--Run Packer on `aws.json`:--```bash-packer build aws.json-```--Launch an instance from the image created by Packer, and follow the steps in Quick Install.diff --git a/web/docs/realtime/server/digitalocean.md b/web/docs/realtime/server/digitalocean.mddeleted file mode 100644index c4afeffd848..00000000000--- a/web/docs/realtime/server/digitalocean.md+++ /dev/null@@ -1,49 +0,0 @@-----id: digitalocean-title: DigitalOcean-description: 'Host your own Realtime server'------## Quick Install--You can use our droplet which is registered in the DigitalOcean Marketplace under the name [Supabase Realtime](https://marketplace.digitalocean.com/apps/supabase-realtime).--Before we start, this droplet enables UFW that allows port `22` for SSH, port `5432` for PostgreSQL, and port `4000` for serving Supabase Realtime subscriptions. If you want to use different ports for your PostgreSQL database or Realtime, you have to configure UFW to allow those ports. Otherwise, read on!--Once the droplet is up and running, you first need to point Realtime to listen to your PostgreSQL database. First, SSH to the droplet instance, and edit `/etc/realtime/realtime.env`:--```bash-nano /etc/realtime/realtime.env-```--You'll see some environment variables you will need to set. If you are using our [Supabase Postgres](https://marketplace.digitalocean.com/apps/supabase-postgres) droplet, you simply need to set `DB_HOST` to the Postgres droplet's public IP, `DB_PASSWORD` to the password you set with `\password postgres`, and `SECRET_KEY_BASE` to a randomly generated secret which you can get by running the command below:--```bash-openssl rand -base64 48-```--Now you need the Realtime service to use the newly set environment variables:--```bash-systemctl daemon-reload && systemctl restart realtime-```--You can now disconnect from SSH. Now you should be able to visit your Realtime endpoint at `http://your_realtime_droplet_ip:4000` and receive the greeting page, which means you're ready to subscribe to changes to your database with Realtime!--## Build from Scratch--Make sure you have Packer [installed](https://learn.hashicorp.com/packer/getting-started/install).--Set `DO_API_TOKEN` to a personal access token (you can create one by following [these steps](https://www.digitalocean.com/docs/apis-clis/api/create-personal-access-token/)):--```bash-export DO_API_TOKEN=youraccesstoken-```--Run Packer on `do.json`:--```bash-packer build do.json-```--Launch an instance from the image created by Packer, and follow the steps in Quick Install.diff --git a/web/docs/realtime/server/docker.md b/web/docs/realtime/server/docker.mddeleted file mode 100644index 0f0a0acddd7..00000000000--- a/web/docs/realtime/server/docker.md+++ /dev/null@@ -1,44 +0,0 @@-----id: docker-title: Docker-description: 'Host your own Realtime server'------Make sure you have Docker [installed](https://docs.docker.com/get-docker/).--## Quick Install--The image is available in [Docker Hub](https://hub.docker.com/r/supabase/realtime) under the name `supabase/realtime`.--You can use the [docker-compose file](https://github.com/supabase/realtime/blob/master/docker-compose.dev.yml) in this repository as a starting point. Note that this already includes a Postgres database image, so you don't have to set one up yourself.--Fill up the environment variables as appropriate, and then run the image:--```bash-docker-compose up-```--## Build from Scratch--Build the image:--```bash-docker build --tag foo .-```--Run the image:--```bash-# Update the environment variables to point to your own database-docker run --rm \- -e DB_HOST=host.docker.internal \- -e DB_NAME=postgres \- -e DB_USER=postgres \- -e DB_PASSWORD=postgres \- -e DB_PORT=5432 \- -e PORT=4000 \- -e HOSTNAME=localhost \- -e SECRET_KEY_BASE=SOMETHING_SUPER_SECRET \- -p 4000:4000 \- foo-```diff --git a/web/docs/realtime/server/source.md b/web/docs/realtime/server/source.mddeleted file mode 100644index 8fc8832e310..00000000000--- a/web/docs/realtime/server/source.md+++ /dev/null@@ -1,41 +0,0 @@-----id: source-title: Building from Source-description: 'Host your own Realtime server'------Make sure you have Elixir [installed](https://elixir-lang.org/install.html).--Make sure you are in the right directory:--```bash-cd server-```--Install dependencies:--```bash-mix local.hex --force-mix local.rebar --force-mix deps.get-```--Create the release:--```bash-MIX_ENV=prod mix release-```--Start the release (set the environment variables as appropriate):--```bash-SECRET_KEY_BASE=SOMETHING_SECRET \-PORT=4000 \-HOSTNAME=localhost \-DB_USER=postgres \-DB_HOST=localhost \-DB_PASSWORD=postgres \-DB_NAME=postgres \-DB_PORT=5432 \-_build/prod/rel/realtime/bin/realtime start-```diff --git a/web/docs/resources.md b/web/docs/resources.mddeleted file mode 100644index 888c484378b..00000000000--- a/web/docs/resources.md+++ /dev/null@@ -1,25 +0,0 @@-----id: resources-title: Overview-description: Learn more-hide_title: true------### Learn--A collection of resources for you to explore and learn.--<a className="card" href="/docs/learn/auth-deep-dive/auth-deep-dive-jwts" style={{marginBottom: 10}}>--<div className="card__body">-<h3>Auth Deep Dive</h3>-<p>In this Series, Supabase's CTO will step you through everything you need to know about Auth in the context of Supabase.</p>-</div>-</a>--### Community--- Support: [email protected]-- GitHub: https://github.com/supabase/supabase-- Discussions & Forums: https://github.com/supabase/supabase/discussions-- Twitter: https://twitter.com/supabasediff --git a/web/docusaurus.config.js b/web/docusaurus.config.jsindex c53ca55d783..bc54b3c1c22 100755--- a/web/docusaurus.config.js+++ b/web/docusaurus.config.js@@ -85,12 +85,6 @@ module.exports = {activeBasePath: '/docs/reference/',position: 'left',},- {- label: 'Resources',- to: '/docs/resources',- activeBaseRegex: 'docs/(resources|learn|gotrue|postgrest|realtime)',- position: 'left',- },{ href: 'https://app.supabase.io', label: 'Login', position: 'left' },],},diff --git a/web/package.json b/web/package.jsonindex ce47953e32d..a1775c8db6e 100644--- a/web/package.json+++ b/web/package.json@@ -7,10 +7,7 @@"build": "npm run gen:all && docusaurus build","swizzle": "docusaurus swizzle","traction": "node traction.js",- "gen:all": "npm run gen:supabase && npm run gen:gotrue && npm run gen:postgrest && npm run gen:realtime && npm run gen:postgres && npm run gen:cli",- "gen:gotrue": "ts-node ReferenceGenerator.ts -o docs/gotrue/client spec/gotrue.yml",- "gen:postgrest": "ts-node ReferenceGenerator.ts -o docs/postgrest/client spec/postgrest.yml",- "gen:realtime": "ts-node ReferenceGenerator.ts -o docs/realtime/client spec/realtime.yml",+ "gen:all": "npm run gen:supabase && npm run gen:postgres && npm run gen:cli","gen:supabase": "ts-node ReferenceGenerator.ts -o docs/reference/javascript spec/supabase.yml","gen:cli": "ts-node ReferenceGenerator.ts -o docs/reference/cli spec/cli.yml","gen:postgres": "ts-node ReferenceGenerator.ts -o docs/reference/postgres spec/postgres.yml"diff --git a/web/sidebar_spec_gotrue.js b/web/sidebar_spec_gotrue.jsdeleted file mode 100644index 2856fccce34..00000000000--- a/web/sidebar_spec_gotrue.js+++ /dev/null@@ -1,22 +0,0 @@-module.exports = {- docs: [- {- type: 'category',- label: 'About',- items: ['gotrue/client/index', 'gotrue/client/installing', 'gotrue/client/initializing'],- collapsed: true,- },- {- type: 'category',- label: 'Client functions',- items: ['gotrue/client/signup', 'gotrue/client/signin', 'gotrue/client/signout', 'gotrue/client/user', 'gotrue/client/session', 'gotrue/client/update', 'gotrue/client/onauthstatechange'],- collapsed: true,- },- {- type: 'category',- label: 'General functions',- items: ['gotrue/client/api-signupwithemail', 'gotrue/client/api-signinwithemail', 'gotrue/client/api-sendmagiclinkemail', 'gotrue/client/api-inviteuserbyemail', 'gotrue/client/api-resetpasswordforemail', 'gotrue/client/api-signout', 'gotrue/client/api-getuser', 'gotrue/client/api-updateuser', 'gotrue/client/api-refreshaccesstoken'],- collapsed: true,- }- ],-}\ No newline at end of filediff --git a/web/sidebar_spec_postgrest.js b/web/sidebar_spec_postgrest.jsdeleted file mode 100644index afbdede2dc8..00000000000--- a/web/sidebar_spec_postgrest.js+++ /dev/null@@ -1,22 +0,0 @@-module.exports = {- docs: [- {- type: 'category',- label: 'About',- items: ['postgrest/client/index', 'postgrest/client/installing', 'postgrest/client/initializing'],- collapsed: true,- },- {- type: 'category',- label: 'Query Builder',- items: ['postgrest/client/from', 'postgrest/client/select', 'postgrest/client/insert', 'postgrest/client/update', 'postgrest/client/delete', 'postgrest/client/rpc'],- collapsed: true,- },- {- type: 'category',- label: 'Filters',- items: ['postgrest/client/filter', 'postgrest/client/not', 'postgrest/client/eq', 'postgrest/client/neq', 'postgrest/client/gt', 'postgrest/client/gte', 'postgrest/client/lt', 'postgrest/client/lte', 'postgrest/client/like', 'postgrest/client/ilike', 'postgrest/client/is', 'postgrest/client/in', 'postgrest/client/cs', 'postgrest/client/cd', 'postgrest/client/sl', 'postgrest/client/sr', 'postgrest/client/nxl', 'postgrest/client/nxr', 'postgrest/client/adj', 'postgrest/client/ov', 'postgrest/client/fts', 'postgrest/client/plfts', 'postgrest/client/phfts', 'postgrest/client/wfts'],- collapsed: true,- }- ],-}\ No newline at end of filediff --git a/web/sidebar_spec_realtime.js b/web/sidebar_spec_realtime.jsdeleted file mode 100644index 688ace13527..00000000000--- a/web/sidebar_spec_realtime.js+++ /dev/null@@ -1,16 +0,0 @@-module.exports = {- docs: [- {- type: 'category',- label: 'About',- items: ['realtime/client/index', 'realtime/client/installing', 'realtime/client/initializing'],- collapsed: true,- },- {- type: 'category',- label: 'Client functions',- items: ['realtime/client/connect', 'realtime/client/disconnect'],- collapsed: true,- }- ],-}\ No newline at end of filediff --git a/web/sidebars.js b/web/sidebars.jsindex e3f163fe8ec..fdd22c515eb 100755--- a/web/sidebars.js+++ b/web/sidebars.js@@ -5,38 +5,11 @@* LICENSE file in the root directory of this source tree.*/-const goTrueClient = require('./sidebar_spec_gotrue')-const postgrestClient = require('./sidebar_spec_postgrest')-const realtimeClient = require('./sidebar_spec_realtime')const supabaseClient = require('./sidebar_spec_supabase')const supabaseCli = require('./sidebar_spec_cli')const postgres = require('./sidebar_spec_postgres')module.exports = {- goTrueClient: [- {- type: 'category',- label: 'Javascript',- collapsed: false,- items: goTrueClient.docs,- },- ],- postgrestClient: [- {- type: 'category',- label: 'Javascript',- collapsed: false,- items: postgrestClient.docs,- },- ],- realtimeClient: [- {- type: 'category',- label: 'Javascript',- collapsed: false,- items: realtimeClient.docs,- },- ],supabaseClient: [{type: 'category',@@ -118,7 +91,18 @@ module.exports = {label: 'Database',collapsed: false,items: [+ 'guides/database/tables','guides/database/full-text-search',+ {+ type: 'category',+ label: 'Connecting to Postgres',+ collapsed: true,+ items: [+ 'guides/database/connecting/connecting-to-postgres',+ 'guides/database/connecting/direct-connections',+ 'guides/database/connecting/connection-pooling',+ ],+ },// 'guides/database/arrays',// 'guides/database/json',// 'guides/database/managing-passwords',@@ -126,7 +110,7 @@ module.exports = {{type: 'category',label: 'Extensions',- collapsed: false,+ collapsed: true,items: ['guides/database/extensions',// 'guides/database/extensions/pgtap',@@ -135,16 +119,6 @@ module.exports = {'guides/database/extensions/uuid-ossp',],},- {- type: 'category',- label: 'Connecting to Postgres',- collapsed: false,- items: [- 'guides/database/connecting/connecting-to-postgres',- 'guides/database/connecting/direct-connections',- 'guides/database/connecting/connection-pooling',- ],- },],},{@@ -156,7 +130,7 @@ module.exports = {{type: 'category',label: 'External Providers',- collapsed: false,+ collapsed: true,items: ['guides/auth/auth-apple','guides/auth/auth-bitbucket',@@ -170,27 +144,10 @@ module.exports = {'guides/auth/auth-twilio',],},- ],- },- // {- // type: 'category',- // label: 'Storage',- // collapsed: false,- // items: ['guides/storage/storage-sample'],- // },- ],- resources: [- { type: 'category', label: 'Resources', items: ['resources'], collapsed: false },- // { type: 'category', label: 'Resources', collapsed: false },- {- type: 'category',- label: 'Learn',- collapsed: false,- items: [{type: 'category',- label: 'Auth Deep Dive',- collapsed: false,+ label: 'Deep Dive',+ collapsed: true,items: ['learn/auth-deep-dive/auth-deep-dive-jwts','learn/auth-deep-dive/auth-row-level-security',@@ -201,55 +158,13 @@ module.exports = {},],},- {- type: 'category',- label: 'Tools',- collapsed: false,- items: [- 'gotrue/server/about',- 'gotrue/client/index',- 'postgrest/server/about',- 'postgrest/client/index',- 'realtime/server/about',- 'realtime/client/index',- ],- },+ // {+ // type: 'category',+ // label: 'Storage',+ // collapsed: false,+ // items: ['guides/storage/storage-sample'],+ // },],- // realtimeServer: [- // {- // type: 'category',- // label: 'Realtime',- // collapsed: false,- // items: ['realtime/server/about'],- // },- // {- // type: 'category',- // label: 'Self hosting',- // collapsed: false,- // items: [- // 'realtime/server/docker',- // 'realtime/server/aws',- // 'realtime/server/digitalocean',- // 'realtime/server/source',- // ],- // },- // ],- // realtimeClient: [- // {- // type: 'category',- // label: 'Realtime',- // collapsed: false,- // items: ['realtime/client/about'],- // },- // ],- // postgrestServer: [- // {- // type: 'category',- // label: 'PostgREST',- // collapsed: false,- // items: ['postgrest/server/about'],- // },- // ],postgresServer: [{type: 'category',diff --git a/web/spec/gotrue.yml b/web/spec/gotrue.ymldeleted file mode 100644index 9941a786f20..00000000000--- a/web/spec/gotrue.yml+++ /dev/null@@ -1,326 +0,0 @@-openref: 0.1--info:- id: reference/gotrue-js- title: GoTrue Client- description: |- GoTrue is an authentication server.-- Supabase provides client libraries to interact with the server-- definition: spec/gotrue.json- libraries:- - name: 'JavaScript'- id: 'js'- version: '0.0.1'- - name: 'Python'- id: 'py'- version: '0.0.1'- docs:- path: gotrue/client/- sidebar:- - name: 'About'- items:- - index- - Installing- - Initializing- - name: 'Client functions'- items:- - signUp- - signIn- - signOut- - user- - session- - update- - onAuthStateChange- - name: 'General functions'- items:- - api.signUpWithEmail- - api.signInWithEmail- - api.sendMagicLinkEmail- - api.inviteUserByEmail- - api.resetPasswordForEmail- - api.signOut- - api.getUser- - api.updateUser- - api.refreshAccessToken--pages:- Installing:- description: |- All JavaScript libraries are built directly by the Supabase team.-- Other languages are built by the community and supported by Supabase.-- ## JavaScript-- ```bash- npm install @supabase/gotrue-js- ```-- ## Python-- ```bash- # Not yet implemented- ```-- Initializing:- $ref: '"GoTrueClient".GoTrueClient.constructor'- examples:- - name: Initialize a GoTrue client- isSpotlight: true- js: |- ```js- import { GoTrueClient } from '@supabase/gotrue-js'-- const auth = new GoTrueClient({- url: "https://your-gotrue-url.com",- headers: {- apikey:- "<SOME-API-KEY>",- Authorization:- "Bearer <SOME-JWT>",- },- })- ```- py: |- ```py- # Not yet implemented- ```-- signUp:- $ref: '"GoTrueClient".GoTrueClient.signUp'- notes: |- - A user can sign up either via email or OAuth.- - If you provide `email`, `password` is also required- - If you provide `access_token`, `password` is also required- examples:- - name: Sign up- js: |- ```js- const { user, session, error } = await auth.signUp({- email: '[email protected]',- password: 'example-password',- })- ```- py: |- ```py- # Not yet implemented- ```-- signIn:- $ref: '"GoTrueClient".GoTrueClient.signIn'- examples:- - name: Sign in- isSpotlight: true- js: |- ```js- // with email and password- const { user, error } = await auth.signIn({- email: '[email protected]',- password: 'example-password',- })-- // send magic link (passwordless link)- const { user, session, error } = await auth.signIn({- email: '[email protected]',- })- ```- py: |- ```py- # Not yet implemented- ```-- signOut:- $ref: '"GoTrueClient".GoTrueClient.signOut'- examples:- - name: Sign out- js: |- ```js- const { error } = await auth.signOut()- ```-- user:- $ref: '"GoTrueClient".GoTrueClient.user'- examples:- - name: Get user- js: |- ```js- const user = await auth.user()- ```-- session:- $ref: '"GoTrueClient".GoTrueClient.session'- examples:- - name: Get user- js: |- ```js- const session = auth.session()- ```-- update:- $ref: '"GoTrueClient".GoTrueClient.update'- examples:- - name: Update a user's metadata.- isSpotlight: true- js: |- ```js- const { user, error } = await auth.update({- data: { hello: 'world' }- })- ```- py: |- ```py- # Not yet implemented- ```- - name: Update a user's email address.- isSpotlight: true- js: |- ```js- const { user, error } = await auth.update({- email: '[email protected]'- }) // Sends a "Confirm Email Change" email to the new email address- ```- py: |- ```py- # Not yet implemented- ```-- onAuthStateChange:- $ref: '"GoTrueClient".GoTrueClient.onAuthStateChange'- examples:- - name: Listen to auth changes- isSpotlight: true- js: |- ```js- supabase.auth.onAuthStateChange((event, session) => {- console.log(event, session)- })- ```- py: |- ```py- # Not yet implemented- ```-- api.signUpWithEmail:- $ref: '"GoTrueApi".GoTrueApi.signUpWithEmail'- examples:- - name: Sign up a new user with email- js: |- ```js- const { error, data } = await auth.api- .signUpWithEmail('[email protected]', 'example-password')- ```-- api.signInWithEmail:- $ref: '"GoTrueApi".GoTrueApi.signInWithEmail'- examples:- - name: Sign in a user with email- js: |- ```js- const { error, data } = await auth.api- .signInWithEmail('[email protected]', 'example-password')- ```-- api.sendMagicLinkEmail:- $ref: '"GoTrueApi".GoTrueApi.sendMagicLinkEmail'- notes: |- - An account is created when a non-existing user email is passed.- examples:- - name: Send user a passwordless login link via email- js: |- ```js- const { error, data } = await auth.api- .sendMagicLinkEmail('[email protected]')- ```-- api.inviteUserByEmail:- $ref: '"GoTrueApi".GoTrueApi.inviteUserByEmail'- examples:- - name: Send a user an invite link to sign up via email- js: |- ```js- const { error, data } = await auth.api- .inviteUserByEmail('[email protected]')- ```-- api.resetPasswordForEmail:- $ref: '"GoTrueApi".GoTrueApi.resetPasswordForEmail'- notes: |- Sends a reset request to an email address.-- When the user clicks the reset link in the email they will be forwarded to:-- `<SITE_URL>#access_token=x&refresh_token=y&expires_in=z&token_type=bearer&type=recovery`-- Your app must detect `type=recovery` in the fragment and display a password reset form to the user.-- You should then use the access_token in the url and new password to update the user as follows:-- ```js- const { error, data } = await auth.api- .updateUser(access_token, { password : new_password })- ```- examples:- - name: Send a user a password reset email- js: |- ```js- const { error, data } = await auth.api- .resetPasswordForEmail('[email protected]')- ```-- api.signOut:- $ref: '"GoTrueApi".GoTrueApi.signOut'- examples:- - name: Sign a user out- js: |- ```js- const { error, data } = await auth.api- .signOut(access_token)- ```-- api.getUser:- $ref: '"GoTrueApi".GoTrueApi.getUser'- examples:- - name: Get the user details for a given user- js: |- ```js- const { error, data } = await auth.api- .getUser(access_token)- ```-- api.updateUser:- $ref: '"GoTrueApi".GoTrueApi.updateUser'- notes: |- Updating the `email` field will cause a "Confirm Email Change" email to be sent to the new address.-- When the user clicks the Confirm link in the Confirm Change email they will be forwarded to:-- `<SITE_URL>?email_change_token=x&type=email_change&redirect_to=y`-- Your app must detect the `email_change_token` in the search params.-- You should then use the `email_change_token` in the url to update the user's email as follows:-- ```js- const { error, data } = await supabase.auth.update({- email_change_token: emailChangeToken,- });- ```- examples:- - name: Update user info that Gotrue holds (also used for setting new passwords)- js: |- ```js- const { error, data } = await auth.api- .updateUser(access_token, { password : 'Why Shinji?' })- ```-- api.refreshAccessToken:- $ref: '"GoTrueApi".GoTrueApi.refreshAccessToken'- examples:- - name: Get a new access and refresh token using a valid refresh_token- js: |- ```js- const { error, data } = await auth.api- .refreshAccessToken(refresh_token)- ```diff --git a/web/spec/postgrest.yml b/web/spec/postgrest.ymldeleted file mode 100644index baafd9eca98..00000000000--- a/web/spec/postgrest.yml+++ /dev/null@@ -1,1460 +0,0 @@-openref: 0.1--info:- id: reference/postgrest-js- title: PostgREST Client- description: |- This is an isomorphic JavaScript client for [PostgREST](https://postgrest.org/).-- PostgREST is a standalone web server that turns your PostgreSQL database directly into a RESTful API.-- Supabase provides client libraries to interact with the PostgREST.-- ### Links-- - [Source code](https://github.com/supabase/postgrest-js)- - [PostgREST](https://postgrest.org/)-- definition: spec/postgrest.json- libraries:- - name: 'JavaScript'- id: 'js'- version: '0.0.1'- - name: 'Python'- id: 'py'- version: '0.0.1'- docs:- path: postgrest/client/- sidebar:- - name: 'About'- items:- - index- - Installing- - Initializing- - name: 'Query Builder'- items:- - from- - select- - insert- - update- - delete- - rpc- - name: 'Filters'- items:- - filter- - not- - eq- - neq- - gt- - gte- - lt- - lte- - like- - ilike- - is- - in- - cs- - cd- - sl- - sr- - nxl- - nxr- - adj- - ov- - fts- - plfts- - phfts- - wfts--pages:- Installing:- description: |- All JavaScript libraries are built directly by the Supabase team.-- Other languages are built by the community and supported by Supabase.-- ## JavaScript-- ```bash- npm install @supabase/postgrest-js- ```--- Initializing:- $ref: '"PostgrestClient".PostgrestClient.constructor'-- examples:- - name: createClient()- js: |- ```js- import { PostgrestClient } from '@supabase/postgrest-js'-- const REST_URL = 'http://localhost:3000'- const postgrest = new PostgrestClient(REST_URL)- ```- py: |- ```py- # Not yet implemented- ```-- from:- $ref: '"PostgrestClient".PostgrestClient.from'-- select:- $ref: '"lib/PostgrestQueryBuilder".PostgrestQueryBuilder.select'- examples:- - name: Getting your data- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .select()- ```- py: |- ```py- # Not yet implemented- ```- - name: Selecting specific columns- description: You can select specific fields from your tables.- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .select('name')- ```- py: |- ```py- # Not yet implemented- ```- - name: Query foreign tables- description: If your database has relationships, you can query related tables too.- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .select(`- name,- cities (- name- )- `)- ```- py: |- ```py- # Not yet implemented- ```- - name: Query the same foreign table multiple times- description: |- Sometimes you will need to query the same foreign table twice.- In this case, you can use the name of the joined column to identify- which join you intend to use. For convenience, you can also give an- alias for each column. For example, if we had a shop of products,- and we wanted to get the supplier and the purchaser at the same time- (both in the users) table:- js: |- ```js- const { data, error } = await postgrest- .from('products')- .select(`- id,- supplier:supplier_id ( name ),- purchaser:purchaser_id ( name )- `)- ```- py: |- ```py- # Not yet implemented- ```- - name: Selecting specific columns- description: You can select specific fields from your tables.- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .select('name')- ```- py: |- ```py- # Not yet implemented- ```- - name: Querying with count option- description: |- You can get the number of rows by using the count option.- Allowed values for count option are `null`, `exact`, `planned` and `estimated`.- js: |- ```js- const { data, error, count } = await postgrest- .from('cities')- .select('name', { count: 'exact' })- ```- py: |- ```py- # Not yet implemented- ```- - name: Quering JSON data- description: |- If you have data inside of a JSONB column, you can apply select- and query filters to the data values. Postgres offers a- [number of operators](https://www.postgresql.org/docs/9.5/functions-json.html)- for querying JSON data. Also see- [PostgREST docs](http://postgrest.org/en/v7.0.0/api.html#json-columns) for more details.- js: |- ```js- const { data, error } = await postgrest- .from('products')- .select(`- id,- supplier:supplier_id ( name ),- purchaser:purchaser_id ( name )- `)- ```- py: |- ```py- # Not yet implemented- ```-- insert:- $ref: '"lib/PostgrestQueryBuilder".PostgrestQueryBuilder.insert'- examples:- - name: Create a record- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .insert([- { name: 'The Shire', country_id: 554 }- ])- ```- py: |- ```py- # Not yet implemented- ```- - name: Bulk create- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .insert([- { name: 'The Shire', country_id: 554 },- { name: 'Rohan', country_id: 555 },- ])- ```- py: |- ```py- # Not yet implemented- ```- - name: Upsert- description: |- For upsert, if set to true, primary key columns would need to be included- in the data parameter in order for an update to properly happen. Also, primary keys- used must be natural, not surrogate. There are however,- [workarounds](https://github.com/PostgREST/postgrest/issues/1118)- for surrogate primary keys.- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .insert(- [- { name: 'The Shire', country_id: 554 },- { name: 'Rohan', country_id: 555 },- { name: 'City by the Bay', country_id:840}- ],- { upsert: true })- ```- py: |- ```py- # Not yet implemented- ```-- update:- $ref: '"lib/PostgrestQueryBuilder".PostgrestQueryBuilder.update'- examples:- - name: Updating your data- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .update({ name: 'Middle Earth' })- .match({ name: 'Auckland' })- ```- py: |- ```py- # Not yet implemented- ```-- delete:- $ref: '"lib/PostgrestQueryBuilder".PostgrestQueryBuilder.delete'- examples:- - name: Delete records- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .delete()- .match({ id: 666 })- ```- py: |- ```py- # Not yet implemented- ```-- rpc:- title: 'Stored Procedures: rpc()'- description: |- You can call stored procedures as a "Remote Procedure Call".-- That's a fancy way of saying that you can put some logic into your database then call it from anywhere.- It's especially useful when the logic rarely changes - like password resets and updates.- $ref: '"PostgrestClient".PostgrestClient.rpc'- examples:- - name: Call a stored procedure- isSpotlight: true- description: This is an example invoking a stored procedure.- js: |- ```js- const { data, error } = await postgrest- .rpc('hello_world')- ```- py: |- ```py- # Not yet implemented- ```- - name: With Parameters- js: |- ```js- const { data, error } = await postgrest- .rpc('echo_city', { name: 'The Shire' })- }- ```- py: |- ```py- # Not yet implemented- ```- - name: Bulk processing- description: You can process large payloads at once using [array parameters](https://postgrest.org/en/stable/api.html#calling-functions-with-array-parameters).- js: |- ```js- const { data, error } = await postgrest- .rpc('echo_cities', { names: ['The Shire', 'Mordor'] })- ```- py: |- ```py- # Not yet implemented- ```- - name: With filters- description: |- Stored procedures that return tables can also be combined with- `modifiers` and- `filters`.- js: |- ```js- const { data, error } = await postgrest- .rpc('echo_all_cities')- .eq('name', 'The Shire')- ```- py: |- ```py- # Not yet implemented- ```- - name: With count option- description: |- You can specify a count option to get the row count along with your data.- Allowed values for count option are `null`, `exact`, `planned` and `estimated`.- js: |- ```js- const { data, error, count } = await postgrest- .rpc('hello_world', { count: 'exact' })- }- ```- py: |- ```py- # Not yet implemented- ```- filter:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.filter'- examples:- - name: With `select()`- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .select('name, country_id')- .filter('name', 'eq', 'Paris')- ```- py: |- ```py- # Not yet implemented- ```- - name: With `update()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .update({ name: 'Mordor' })- .filter('name', 'eq', 'Paris')- ```- py: |- ```py- # Not yet implemented- ```- - name: With `delete()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .delete()- .filter('name', 'eq', 'Paris')- ```- py: |- ```py- # Not yet implemented- ```- - name: With `rpc()`- js: |- ```js- // Only valid if the Stored Procedure returns a table type.- const { data, error } = await postgrest- .rpc('echo_all_cities')- .filter('name', 'eq', 'Paris')- ```- py: |- ```py- # Not yet implemented- ```- - name: Filter embedded resources- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .select('name, countries ( name )')- .filter('countries.name', 'eq', 'France')- ```- py: |- ```py- # Not yet implemented- ```-- not:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.not'- examples:- - name: With `select()`- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .select('name, country_id')- .not('name', 'eq', 'Paris')- ```- py: |- ```py- # Not yet implemented- ```- - name: With `update()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .update({ name: 'Mordor' })- .not('name', 'eq', 'Paris')- ```- py: |- ```py- # Not yet implemented- ```- - name: With `delete()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .delete()- .not('name', 'eq', 'Paris')- ```- py: |- ```py- # Not yet implemented- ```- - name: With `rpc()`- js: |- ```js- // Only valid if the Stored Procedure returns a table type.- const { data, error } = await postgrest- .rpc('echo_all_cities)- .not('name', 'eq', 'Paris')- ```- py: |- ```py- # Not yet implemented- ```-- eq:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.eq'- examples:- - name: With `select()`- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .select('name, country_id')- .eq('name', 'The shire')- ```- py: |- ```py- # Not yet implemented- ```- - name: With `update()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .update({ name: 'Mordor' })- .eq('name', 'San Francisco')- ```- py: |- ```py- # Not yet implemented- ```- - name: With `delete()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .delete()- .eq('name', 'Mordor')- ```- py: |- ```py- # Not yet implemented- ```- - name: With `rpc()`- js: |- ```js- // Only valid if the Stored Procedure returns a table type.- const { data, error } = await postgrest- .rpc('echo_all_cities')- .eq('name', 'San Francisco')- ```- py: |- ```py- # Not yet implemented- ```-- neq:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.neq'- examples:- - name: With `select()`- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .select('name, country_id')- .neq('name', 'The shire')- ```- py: |- ```py- # Not yet implemented- ```- - name: With `update()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .update({ name: 'Mordor' })- .neq('name', 'San Francisco')- ```- py: |- ```py- # Not yet implemented- ```- - name: With `delete()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .delete()- .neq('name', 'Mordor')- ```- py: |- ```py- # Not yet implemented- ```- - name: With `rpc()`- js: |- ```js- // Only valid if the Stored Procedure returns a table type.- const { data, error } = await postgrest- .rpc('echo_all_cities')- .neq('name', 'Lagos')- ```- py: |- ```py- # Not yet implemented- ```-- gt:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.gt'- examples:- - name: With `select()`- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .select('name, country_id')- .gt('country_id', 250)- ```- py: |- ```py- # Not yet implemented- ```- - name: With `update()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .update({ name: 'Mordor' })- .gt('country_id', 250)- ```- py: |- ```py- # Not yet implemented- ```- - name: With `delete()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .delete()- .gt('country_id', 250)- ```- py: |- ```py- # Not yet implemented- ```- - name: With `rpc()`- js: |- ```js- // Only valid if the Stored Procedure returns a table type.- const { data, error } = await postgrest- .rpc('echo_all_cities')- .gt('country_id', 250)- ```- py: |- ```py- # Not yet implemented- ```-- gte:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.gte'- examples:- - name: With `select()`- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .select('name, country_id')- .gte('country_id', 250)- ```- py: |- ```py- # Not yet implemented- ```- - name: With `update()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .update({ name: 'Mordor' })- .gte('country_id', 250)- ```- py: |- ```py- # Not yet implemented- ```- - name: With `delete()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .delete()- .gte('country_id', 250)- ```- py: |- ```py- # Not yet implemented- ```- - name: With `rpc()`- js: |- ```js- // Only valid if the Stored Procedure returns a table type.- const { data, error } = await postgrest- .rpc('echo_all_cities')- .gte('country_id', 250)- ```- py: |- ```py- # Not yet implemented- ```-- lt:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.lt'- examples:- - name: With `select()`- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .select('name, country_id')- .lt('country_id', 250)- ```- py: |- ```py- # Not yet implemented- ```- - name: With `update()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .update({ name: 'Mordor' })- .lt('country_id', 250)- ```- py: |- ```py- # Not yet implemented- ```- - name: With `delete()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .delete()- .lt('country_id', 250)- ```- py: |- ```py- # Not yet implemented- ```- - name: With `rpc()`- js: |- ```js- // Only valid if the Stored Procedure returns a table type.- const { data, error } = await postgrest- .rpc('echo_all_cities')- .lt('country_id', 250)- ```- py: |- ```py- # Not yet implemented- ```-- lte:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.lte'- examples:- - name: With `select()`- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .select('name, country_id')- .lte('country_id', 250)- ```- py: |- ```py- # Not yet implemented- ```- - name: With `update()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .update({ name: 'Mordor' })- .lte('country_id', 250)- ```- py: |- ```py- # Not yet implemented- ```- - name: With `delete()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .delete()- .lte('country_id', 250)- ```- py: |- ```py- # Not yet implemented- ```- - name: With `rpc()`- js: |- ```js- // Only valid if the Stored Procedure returns a table type.- const { data, error } = await postgrest- .rpc('echo_all_cities')- .lte('country_id', 250)- ```- py: |- ```py- # Not yet implemented- ```-- like:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.like'- examples:- - name: With `select()`- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .select('name, country_id')- .like('name', '%la%')- ```- py: |- ```py- # Not yet implemented- ```- - name: With `update()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .update({ name: 'Mordor' })- .like('name', '%la%')- ```- py: |- ```py- # Not yet implemented- ```- - name: With `delete()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .delete()- .like('name', '%la%')- ```- py: |- ```py- # Not yet implemented- ```- - name: With `rpc()`- js: |- ```js- // Only valid if the Stored Procedure returns a table type.- const { data, error } = await postgrest- .rpc('echo_all_cities')- .like('name', '%la%')- ```- py: |- ```py- # Not yet implemented- ```-- ilike:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.ilike'- examples:- - name: With `select()`- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .select('name, country_id')- .ilike('name', '%la%')- ```- py: |- ```py- # Not yet implemented- ```- - name: With `update()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .update({ name: 'Mordor' })- .ilike('name', '%la%')- ```- py: |- ```py- # Not yet implemented- ```- - name: With `delete()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .delete()- .ilike('name', '%la%')- ```- py: |- ```py- # Not yet implemented- ```- - name: With `rpc()`- js: |- ```js- // Only valid if the Stored Procedure returns a table type.- const { data, error } = await postgrest- .rpc('echo_all_cities')- .ilike('name', '%la%')- ```- py: |- ```py- # Not yet implemented- ```-- is:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.is'- examples:- - name: With `select()`- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .select('name, country_id')- .is('name', null)- ```- py: |- ```py- # Not yet implemented- ```- - name: With `update()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .update({ name: 'Mordor' })- .is('name', null)- ```- py: |- ```py- # Not yet implemented- ```- - name: With `delete()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .delete()- .is('name', null)- ```- py: |- ```py- # Not yet implemented- ```- - name: With `rpc()`- js: |- ```js- // Only valid if the Stored Procedure returns a table type.- const { data, error } = await postgrest- .rpc('echo_all_cities')- .is('name', null)- ```- py: |- ```py- # Not yet implemented- ```-- in:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.in'- examples:- - name: With `select()`- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .select('name, country_id')- .in('name', ['Rio de Janeiro', 'San Francisco'])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `update()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .update({ name: 'Mordor' })- .in('name', ['Rio de Janeiro', 'San Francisco'])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `delete()`- js: |- ```js- const { data, error } = await postgrest- .from('cities')- .delete()- .in('name', ['Rio de Janeiro', 'San Francisco'])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `rpc()`- js: |- ```js- // Only valid if the Stored Procedure returns a table type.- const { data, error } = await postgrest- .rpc('echo_all_cities')- .in('name', ['Rio de Janeiro', 'San Francisco'])- ```- py: |- ```py- # Not yet implemented- ```-- cs:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.cs'- examples:- - name: With `select()`- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .select('name, id, main_exports')- .cs('main_exports', ['oil'])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `update()`- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .update({ name: 'Mordor' })- .cs('main_exports', ['oil'])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `delete()`- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .delete()- .cs('main_exports', ['oil'])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `rpc()`- js: |- ```js- // Only valid if the Stored Procedure returns a table type.- const { data, error } = await postgrest- .rpc('echo_all_countries')- .cs('main_exports', ['oil'])- ```- py: |- ```py- # Not yet implemented- ```-- cd:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.cd'- examples:- - name: With `select()`- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .select('name, id, main_exports')- .cd('main_exports', ['cars', 'food', 'machine'])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `update()`- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .update({ name: 'Mordor' })- .cd('main_exports', ['orks', 'surveillance', 'evil'])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `delete()`- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .delete()- .cd('main_exports', ['cars', 'food', 'machine'])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `rpc()`- js: |- ```js- // Only valid if the Stored Procedure returns a table type.- const { data, error } = await postgrest- .rpc('echo_all_countries')- .cd('main_exports', ['cars', 'food', 'machine'])- ```- py: |- ```py- # Not yet implemented- ```-- sl:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.sl'- examples:- - name: With `select()`- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .select('name, id, population_range_millions')- .sl('population_range_millions', [150, 250])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `update()`- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .update({ name: 'Mordor' })- .sl('population_range_millions', [150, 250])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `delete()`- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .delete()- .sl('population_range_millions', [150, 250])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `rpc()`- js: |- ```js- // Only valid if the Stored Procedure returns a table type.- const { data, error } = await postgrest- .rpc('echo_all_countries')- .sl('population_range_millions', [150, 250])- ```- py: |- ```py- # Not yet implemented- ```-- sr:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.sr'- examples:- - name: With `select()`- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .select('name, id, population_range_millions')- .sr('population_range_millions', [150, 250])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `update()`- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .update({ name: 'Mordor' })- .sr('population_range_millions', [150, 250])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `delete()`- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .delete()- .sr('population_range_millions', [150, 250])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `rpc()`- js: |- ```js- // Only valid if the Stored Procedure returns a table type.- const { data, error } = await postgrest- .rpc('echo_all_countries')- .sr('population_range_millions', [150, 250])- ```- py: |- ```py- # Not yet implemented- ```-- nxl:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.nxl'- examples:- - name: With `select()`- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .select('name, id, population_range_millions')- .nxl('population_range_millions', [150, 250])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `update()`- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .update({ name: 'Mordor' })- .nxl('population_range_millions', [150, 250])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `delete()`- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .delete()- .nxl('population_range_millions', [150, 250])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `rpc()`- js: |- ```js- // Only valid if the Stored Procedure returns a table type.- const { data, error } = await postgrest- .rpc('echo_all_countries')- .nxl('population_range_millions', [150, 250])- ```- py: |- ```py- # Not yet implemented- ```-- nxr:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.nxr'- examples:- - name: With `select()`- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .select('name, id, population_range_millions')- .nxr('population_range_millions', [150, 250])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `update()`- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .update({ name: 'Mordor' })- .nxr('population_range_millions', [150, 250])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `delete()`- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .delete()- .nxr('population_range_millions', [150, 250])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `rpc()`- js: |- ```js- // Only valid if the Stored Procedure returns a table type.- const { data, error } = await postgrest- .rpc('echo_all_countries')- .nxr('population_range_millions', [150, 250])- ```- py: |- ```py- # Not yet implemented- ```-- adj:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.adj'- examples:- - name: With `select()`- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .select('name, id, population_range_millions')- .adj('population_range_millions', [70, 185])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `update()`- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .update({ name: 'Mordor' })- .adj('population_range_millions', [70, 185])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `delete()`- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .delete()- .adj('population_range_millions', [70, 185])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `rpc()`- js: |- ```js- // Only valid if the Stored Procedure returns a table type.- const { data, error } = await postgrest- .rpc('echo_all_countries')- .adj('population_range_millions', [70, 185])- ```- py: |- ```py- # Not yet implemented- ```-- ov:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.ov'- examples:- - name: With `select()`- isSpotlight: true- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .select('name, id, main_exports')- .ova('main_exports', ['computers', 'minerals'])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `update()`- js: |- ```js- let countries = await postgrest- .from('countries')- .update({ name: 'Mordor' })- .ova('main_exports', ['computers', 'minerals'])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `delete()`- js: |- ```js- const { data, error } = await postgrest- .from('countries')- .delete()- .ova('main_exports', ['computers', 'minerals'])- ```- py: |- ```py- # Not yet implemented- ```- - name: With `rpc()`- js: |- ```js- // Only valid if the Stored Procedure returns a table type.- const { data, error } = await postgrest- .rpc('echo_all_countries')- .ova('main_exports', ['computers', 'minerals'])- ```- py: |- ```py- # Not yet implemented- ```-- fts:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.fts'-- plfts:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.plfts'-- phfts:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.phfts'-- wfts:- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.wfts'diff --git a/web/spec/realtime.yml b/web/spec/realtime.ymldeleted file mode 100644index 645c5955370..00000000000--- a/web/spec/realtime.yml+++ /dev/null@@ -1,80 +0,0 @@-openref: 0.1--info:- id: reference/realtime-js- title: Realtime Client- description: |- Listens to changes in a PostgreSQL Database and via websockets.-- This is for usage with Supabase Realtime server.-- definition: spec/realtime.json- libraries:- - name: 'JavaScript'- id: 'js'- version: '0.0.1'- - name: 'Python'- id: 'py'- version: '0.0.1'- docs:- path: realtime/client/- sidebar:- - name: 'About'- items:- - index- - Installing- - Initializing- - name: 'Client functions'- items:- - connect- - disconnect--pages:-- Installing:- description: |- All JavaScript libraries are built directly by the Supabase team.-- Other languages are built by the community and supported by Supabase.-- ## JavaScript-- ```bash- npm install @supabase/realtime-js- ```-- ## Python-- ```bash- # Not yet implemented- ```-- Initializing:- $ref: '"RealtimeClient".RealtimeClient.constructor'-- connect:- $ref: '"RealtimeClient".RealtimeClient.connect'- examples:- - name: Connect- js: |- ```js- realtime.connect()- ```- py: |- ```py- # Not yet implemented- ```-- disconnect:- $ref: '"RealtimeClient".RealtimeClient.disconnect'- examples:- - name: Connect- js: |- ```js- realtime.disconnect()- ```- py: |- ```py- # Not yet implemented- ```-