Skip to content

Commit

Permalink
add supported SQL commands for Doltgres
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifersp committed Apr 12, 2024
1 parent 92cb30e commit 7d58967
Show file tree
Hide file tree
Showing 5 changed files with 246 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Dolt Documentation

## Introduction

This repository contains Dolt, DoltHub, DoltLab, and Postgres documentation. Check out our [website](https://www.dolthub.com), [team](https://www.dolthub.com/team), and documentation to learn more:
This repository contains Dolt, DoltHub, DoltLab, and Doltgres documentation. Check out our [website](https://www.dolthub.com), [team](https://www.dolthub.com/team), and documentation to learn more:

- [Dolt](https://docs.dolthub.com)
- [Doltgres](https://docs.doltgres.com)
Expand Down
2 changes: 1 addition & 1 deletion packages/dolt/content/reference/sql/sql-support/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This series of documents shows:
* 🟠 Where we support the feature but deviate from MySQL in some way
* ❌ Where we lack support for the SQL language feature.

This section is divided into four main categories:
This section is divided into five main categories:

1. [Data Description](data-description.md): SQL features for describing and organizing data
2. [Expressions, Functions, Operators](expressions-functions-operators.md): SQL expressions, functions and operators used in queries
Expand Down
2 changes: 2 additions & 0 deletions packages/doltgres/content/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
- [Installation](installation.md)
- [Running the Server](running-server.md)
- [Replication from Postgres](replication-from-postgres.md)
- [SQL Language Support](sql-support/README.md)
- [Supported SQL Commands](sql-support/supported-commands)
19 changes: 19 additions & 0 deletions packages/doltgres/content/sql-support/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: SQL Language Support
---

Doltgres's goal is to be compliant with the PostgreSQL dialect,
with every query and statement that works in PostgreSQL behaving identically in Doltgres.

For most syntax and technical questions, you should feel free to refer to
the [PostgreSQL 15 user manual](https://www.postgresql.org/docs/15/index.html).

Any deviation from the PostgreSQL 15 manual should be documented on this page,
or else indicates a bug. Please [file issues](https://github.com/dolthub/dolt/issues)
with any incompatibilities you discover.

This series of documents shows:

* ✅ Which SQL language features we support the same as PostgreSQL
* 🟠 Where we support the feature but deviate from PostgreSQL in some way
* ❌ Where we lack support for the SQL language feature.
223 changes: 223 additions & 0 deletions packages/doltgres/content/sql-support/supported-commands.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
---
title: Supported SQL Commands
---

# Supported SQL Commands

## Access management statements

| SQL Commands | Parses | Works | Notes and limitations |
|:-------------------------|:------:|:-----:|:-----------------------|
| ALTER DEFAULT PRIVILEGES ||| |
| ALTER GROUP ||| |
| ALTER ROLE ||| |
| ALTER USER ||| |
| ALTER USER MAPPING ||| |
| CREATE GROUP | 🟠 || |
| CREATE ROLE | 🟠 || |
| CREATE USER | 🟠 || |
| CREATE USER MAPPING ||| |
| DROP GROUP ||| |
| DROP ROLE ||| |
| DROP USER ||| |
| DROP USER MAPPING ||| |
| GRANT ||| |
| REASSIGN OWNED ||| |
| REVOKE ||| |

## Data definition statements

| SQL Commands | Parses | Works | Notes and limitations |
|:---------------------------------|:------:|:-----:|:----------------------|
| ALTER AGGREGATE ||| |
| ALTER COLLATION ||| |
| ALTER CONVERSION ||| |
| ALTER DATABASE ||| |
| ALTER DOMAIN ||| |
| ALTER EVENT TRIGGER ||| |
| ALTER EXTENSION ||| |
| ALTER FOREIGN DATA WRAPPER ||| |
| ALTER FOREIGN TABLE ||| |
| ALTER FUNCTION ||| |
| ALTER INDEX ||| |
| ALTER LANGUAGE ||| |
| ALTER LARGE OBJECT ||| |
| ALTER MATERIALIZED VIEW ||| |
| ALTER OPERATOR ||| |
| ALTER OPERATOR CLASS ||| |
| ALTER OPERATOR FAMILY ||| |
| ALTER POLICY ||| |
| ALTER PROCEDURE ||| |
| ALTER PUBLICATION ||| |
| ALTER ROUTINE ||| |
| ALTER RULE ||| |
| ALTER SCHEMA ||| |
| ALTER SEQUENCE ||| |
| ALTER SERVER ||| |
| ALTER STATISTICS ||| |
| ALTER SUBSCRIPTION ||| |
| ALTER SYSTEM ||| |
| ALTER TABLE ||| |
| ALTER TABLESPACE ||| |
| ALTER TEXT SEARCH CONFIGURATION ||| |
| ALTER TEXT SEARCH DICTIONARY ||| |
| ALTER TEXT SEARCH PARSER ||| |
| ALTER TEXT SEARCH TEMPLATE ||| |
| ALTER TRIGGER ||| |
| ALTER TYPE ||| |
| ALTER VIEW ||| |
| COMMENT ||| |
| CREATE ACCESS METHOD ||| |
| CREATE AGGREGATE ||| |
| CREATE CAST ||| |
| CREATE COLLATION ||| |
| CREATE CONVERSION ||| |
| CREATE DATABASE || 🟠 | |
| CREATE DOMAIN ||| |
| CREATE EVENT TRIGGER ||| |
| CREATE EXTENSION ||| |
| CREATE FOREIGN DATA WRAPPER ||| |
| CREATE FOREIGN TABLE ||| |
| CREATE FUNCTION ||| |
| CREATE INDEX ||| |
| CREATE LANGUAGE ||| |
| CREATE MATERIALIZED VIEW ||| |
| CREATE OPERATOR ||| |
| CREATE OPERATOR CLASS ||| |
| CREATE OPERATOR FAMILY ||| |
| CREATE POLICY ||| |
| CREATE PROCEDURE ||| |
| CREATE PUBLICATION ||| |
| CREATE RULE ||| |
| CREATE SCHEMA ||| |
| CREATE SEQUENCE ||| |
| CREATE SERVER ||| |
| CREATE STATISTICS ||| |
| CREATE SUBSCRIPTION ||| |
| CREATE TABLE || 🟠 | |
| CREATE TABLESPACE ||| |
| CREATE TEXT SEARCH CONFIGURATION ||| |
| CREATE TEXT SEARCH DICTIONARY ||| |
| CREATE TEXT SEARCH PARSER ||| |
| CREATE TEXT SEARCH TEMPLATE ||| |
| CREATE TRANSFORM ||| |
| CREATE TRIGGER ||| |
| CREATE TYPE ||| |
| CREATE VIEW ||| |
| DROP ACCESS METHOD ||| |
| DROP AGGREGATE ||| |
| DROP CAST ||| |
| DROP COLLATION ||| |
| DROP CONVERSION ||| |
| DROP DATABASE || 🟠 | |
| DROP DOMAIN ||| |
| DROP EVENT TRIGGER ||| |
| DROP EXTENSION ||| |
| DROP FOREIGN DATA WRAPPER ||| |
| DROP FOREIGN TABLE ||| |
| DROP FUNCTION ||| |
| DROP INDEX || 🟠 | |
| DROP LANGUAGE ||| |
| DROP MATERIALIZED VIEW || 🟠 | |
| DROP OPERATOR ||| |
| DROP OPERATOR CLASS ||| |
| DROP OPERATOR FAMILY ||| |
| DROP OWNED ||| |
| DROP POLICY ||| |
| DROP PROCEDURE ||| |
| DROP PUBLICATION ||| |
| DROP ROUTINE ||| |
| DROP RULE ||| |
| DROP SCHEMA ||| |
| DROP SEQUENCE ||| |
| DROP SERVER ||| |
| DROP STATISTICS ||| |
| DROP SUBSCRIPTION ||| |
| DROP TABLE || 🟠 | |
| DROP TABLESPACE ||| |
| DROP TEXT SEARCH CONFIGURATION ||| |
| DROP TEXT SEARCH DICTIONARY ||| |
| DROP TEXT SEARCH PARSER ||| |
| DROP TEXT SEARCH TEMPLATE ||| |
| DROP TRANSFORM ||| |
| DROP TRIGGER || 🟠 | |
| DROP TYPE ||| |
| DROP VIEW || 🟠 | |
| SECURITY LABEL ||| |

## Data manipulation statements

| SQL Commands | Parses | Works | Notes and limitations |
|:--------------------------|:------:|:-----:|:----------------------|
| CALL ||| |
| CLOSE ||| |
| CREATE TABLE AS ||| |
| CLUSTER ||| |
| COPY ||| |
| DECLARE ||| |
| DELETE | 🟠 | 🟠 | |
| DO ||| |
| FETCH ||| |
| IMPORT FOREIGN SCHEMA ||| |
| INSERT | 🟠 | 🟠 | |
| LOAD ||| |
| MERGE ||| |
| MOVE ||| |
| REFRESH MATERIALIZED VIEW ||| |
| REINDEX ||| |
| SELECT | 🟠 | 🟠 | |
| SELECT INTO ||| |
| TRUNCATE | 🟠 | 🟠 | |
| UPDATE | 🟠 | 🟠 | |
| VACUUM ||| |
| VALUES | 🟠 | 🟠 | |

## Prepared statements

| SQL Commands | Parses | Works | Notes and limitations |
|:-------------|:------:|:-----:|:----------------------|
| DEALLOCATE ||| |
| PREPARE ||| |
| EXECUTE ||| |

## Session management statements

| SQL Commands | Parses | Works | Notes and limitations |
|:--------------------------|:------:|:-----:|:----------------------|
| DISCARD | 🟠 || |
| RESET ||| |
| SET || 🟠 | |
| SET CONSTRAINTS ||| |
| SET ROLE ||| |
| SET SESSION AUTHORIZATION ||| |
| SET TRANSACTION | 🟠 || |
| SHOW || 🟠 | |

## Transactional statements

| SQL Commands | Parses | Works | Notes and limitations |
|:----------------------|:------:|:-----:|:----------------------|
| ABORT ||| |
| BEGIN | 🟠 | 🟠 | |
| CHECKPOINT ||| |
| COMMIT ||| |
| COMMIT PREPARED ||| |
| END ||| |
| LISTEN ||| |
| LOCK ||| |
| NOTIFY ||| |
| PREPARE TRANSACTION ||| |
| RELEASE SAVEPOINT ||| |
| ROLLBACK ||| |
| ROLLBACK PREPARED ||| |
| ROLLBACK TO SAVEPOINT ||| |
| SAVEPOINT ||| |
| START TRANSACTION | 🟠 | 🟠 | |
| UNLISTEN ||| |

## Utility statements

| SQL Commands | Parses | Works | Notes and limitations |
|:-------------|:------:|:-----:|:----------------------|
| ANALYZE ||| |
| EXPLAIN ||| |

0 comments on commit 7d58967

Please sign in to comment.