Skip to content

Adding unsupported commands #220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions 040-SDK/135-sql-access.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,28 @@ WHERE people.id=emails.id;

By assigning aliases, you can distinguish between columns with similar names and manage them effectively.

### Unsupported commands
### Supported commands

Certain commands are not supported in Xata:
Xata supports the following essential Data Manipulation Language (DML) SQL commands, which are fundamental for managing and manipulating data within database tables:

- Data definition language (DDL) commands such as `CREATE`, `DROP`, `ALTER` and `TRUNCATE` are not supported.
- `SELECT`: This command is used to retrieve data from a database. It allows you to select one or more columns of a table, with various options for filtering, sorting, and grouping the data.

- Data control language (DCL) commands such as `GRANT` and `REVOKE` are not supported.
- `INSERT`: This command is used to add new records (rows) to a table. It specifies the table to insert into and the values for the new row.

- Transaction control language (TCL) commands such as `COMMIT`, `ROLLBACK`, `SAVEPOINT`, `ROLLBACK TO SAVEPOINT`, and `SET TRANSACTION` are not supported.
- `DELETE`: This command removes existing records from a table. It can be used with conditions to specify which records should be deleted.

- `UPDATE`: This command modifies existing records in a table such as correcting errors or updating information. Like DELETE, it can be used with conditions to specify which records should be updated and how.

#### Unsupported commands

The following table provides examples of commands that are currently **not supported** in Xata:

| Command type | Description | Unsupported commands |
| -------------------------------------- | ------------------------------------------------------- | ----------------------------------------------------------------------------- |
| **Data Definition Language (DDL)** | Used for defining or altering database structures | `CREATE`, `DROP`, `ALTER`, `TRUNCATE` |
| **Data Manipulation Language (DML)** | Typically used for data manipulation | `UPSERT`, `SEQUENCE` |
| **Data Control Language (DCL)** | Manages user permissions and access control | `GRANT`, `REVOKE` |
| **Transaction Control Language (TCL)** | Crucial for managing the state of database transactions | `COMMIT`, `ROLLBACK`, `SAVEPOINT`, `ROLLBACK TO SAVEPOINT`, `SET TRANSACTION` |

### Connection methods

Expand Down