The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Adds 3 simple pages for Postgres
Paul Copplestone6b36d98c09df
diff --git a/web/sidebar_spec_postgres.js b/web/sidebar_spec_postgres.jsindex 1dd7c1f4627..d428462a9be 100644--- a/web/sidebar_spec_postgres.js+++ b/web/sidebar_spec_postgres.js@@ -9,13 +9,7 @@ module.exports = {{type: 'category',label: 'Database',- items: ['reference/postgres/database-users', 'reference/postgres/database-passwords'],- collapsed: true,- },- {- type: 'category',- label: 'Schemas',- items: ['reference/postgres/creating-schemas'],+ items: ['reference/postgres/database-passwords'],collapsed: true,},{@@ -23,12 +17,6 @@ module.exports = {label: 'Tables',items: ['reference/postgres/creating-tables'],collapsed: true,- },- {- type: 'category',- label: 'Columns',- items: ['reference/postgres/creating-columns', 'reference/postgres/column-types'],- collapsed: true,}],}\ No newline at end of filediff --git a/web/spec/postgres.yml b/web/spec/postgres.ymlindex e7ae31a95d4..b63fdf4ba4f 100644--- a/web/spec/postgres.yml+++ b/web/spec/postgres.yml@@ -5,7 +5,10 @@ info:title: Getting starteddescription: |- PostgreSQL+ PostgreSQL, also known as Postgres, is a free and open-source relational+ database management system emphasizing extensibility and SQL compliance.+ It was originally named POSTGRES, referring to its origins as a successor+ to the Ingres database developed at the University of California, Berkeley.definition: spec/combined.jsonlibraries:@@ -20,18 +23,18 @@ info:- index- name: 'Database'items:- - Database Users+ # - Database Users- Database Passwords- - name: 'Schemas'- items:- - Creating schemas+ # - name: 'Schemas'+ # items:+ # - Creating schemas- name: 'Tables'items:- Creating tables- - name: 'Columns'- items:- - Creating columns- - Column types+ # - name: 'Columns'+ # items:+ # - Creating columns+ # - Column typespages:Database Users:@@ -47,7 +50,7 @@ pages:```Database Passwords:description: |- Resetting passwords.+ You can manage the passwords of your database users using any super user.examples:- name: Password reset@@ -68,34 +71,59 @@ pages:```Creating tables:description: |- Creating tables.+ A relational database consists of multiple related tables. A table consists of rows and columns.examples:- name: Create table+ isSpotlight: true+ sql: |+ ```sql+ create table table_name (+ id integer primary key,+ data jsonb,+ name text+ );+ ```+ - name: Primary keys using multiple columnssql: |```sql- create table new_table;+ create table table_name (+ column_1 data_type,+ column_2 data_type+ -- Constraints:+ primary key (column_1, column_2)+ );```Creating columns:description: |Creating columns.examples:- - name: Create column+ - name: During table creation+ isSpotlight: truesql: |```sql- alter table new_table- add new_column text;+ create table table_name (+ id integer primary key,+ data jsonb,+ name text+ );```- Column types:- description: |- Column types.-- examples:- name: Create columnsql: |```sqlalter table new_tableadd new_column text;```+ # Data types:+ # description: |+ # Data types.++ # examples:+ # - name: Create columns and data types+ # sql: |+ # ```sql+ # alter table new_table+ # add new_column text;+ # ```