Skip to content

Commit 42031dd

Browse files
committed
docs: fix exeuction mode comment
1 parent a32d5af commit 42031dd

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

mintlify/sql-editor/run-queries.mdx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,19 @@ title: Query
44

55
<Info>
66

7-
SQL Editor default mode is read-only, which only supports running SELECT queries. If you attempt
8-
to run DDL or DML change queries, SQL Editor will prompt you to create a new issue to start the
9-
[SQL change workflow](/change-database/change-workflow).
7+
By default, SQL Editor allows executing both read (SELECT) and write (DDL/DML) SQL statements.
108

11-
Workspace Admins and DBAs are allowed to execute any SQL statements in
12-
[Admin Mode](/sql-editor/admin-mode).
9+
You can restrict SQL Editor to read-only mode by configuring [Statement Execution Mode](/change-database/environment-policy/overview#statement-execution-mode). In read-only mode, if you attempt to run DDL or DML change queries, SQL Editor will prompt you to create a new issue to start the [SQL change workflow](/change-database/change-workflow).
1310

14-
The read-only mode is not available for MongoDB, but you also can execute the statements in [Admin Mode](/sql-editor/admin-mode).
11+
Workspace Admins and DBAs can always execute any SQL statements in [Admin Mode](/sql-editor/admin-mode).
1512

1613
</Info>
1714

18-
## IntelliSense
15+
## Autocomplete
1916

2017
![autocomplete](/content/docs/sql-editor/autocomplete.webp)
2118

22-
IntelliSense depends on WebSocket. If you access Bytebase via a gateway, you need to enable WebSocket there. Here is a NGINX configuration:
19+
Autocomplete depends on WebSocket. If you access Bytebase via a gateway, you need to enable WebSocket there. Here is a NGINX configuration:
2320

2421
```nginx
2522
@@ -95,4 +92,4 @@ For each database, the query result will show up in its own tab:
9592

9693
![batch-query-result1](/content/docs/sql-editor/batch-query-result1.webp)
9794

98-
![batch-query-result2](/content/docs/sql-editor/batch-query-result2.webp)
95+
![batch-query-result2](/content/docs/sql-editor/batch-query-result2.webp)

0 commit comments

Comments
 (0)