Skip to content

Commit 9ce5fcb

Browse files
committed
Improve table properties doc in MySQL
1 parent 198b20c commit 9ce5fcb

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

docs/src/main/sphinx/connector/mysql.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -105,37 +105,6 @@ creates a catalog named `sales` using the configured connector.
105105
The connector supports {doc}`/admin/fault-tolerant-execution` of query
106106
processing. Read and write operations are both supported with any retry policy.
107107

108-
## Table properties
109-
110-
Table property usage example:
111-
112-
```
113-
CREATE TABLE person (
114-
id INT NOT NULL,
115-
name VARCHAR,
116-
age INT,
117-
birthday DATE
118-
)
119-
WITH (
120-
primary_key = ARRAY['id']
121-
);
122-
```
123-
124-
The following are supported MySQL table properties:
125-
126-
:::{list-table}
127-
:widths: 30, 10, 60
128-
:header-rows: 1
129-
130-
* - Property name
131-
- Required
132-
- Description
133-
* - `primary_key`
134-
- No
135-
- The primary key of the table, can choose multi columns as the table primary key.
136-
All key columns must be defined as `NOT NULL`.
137-
:::
138-
139108
(mysql-type-mapping)=
140109
## Type mapping
141110

@@ -399,6 +368,37 @@ following features:
399368
(mysql-schema-and-table-management)=
400369
### Schema and table management
401370

371+
#### Table properties
372+
373+
Table property usage example:
374+
375+
```
376+
CREATE TABLE person (
377+
id INT NOT NULL,
378+
name VARCHAR,
379+
age INT,
380+
birthday DATE
381+
)
382+
WITH (
383+
primary_key = ARRAY['id']
384+
);
385+
```
386+
387+
The following are supported MySQL table properties:
388+
389+
:::{list-table}
390+
:widths: 30, 10, 60
391+
:header-rows: 1
392+
393+
* - Property name
394+
- Required
395+
- Description
396+
* - `primary_key`
397+
- No
398+
- The primary key of the table, can choose multi columns as the table primary key.
399+
All key columns must be defined as `NOT NULL`.
400+
:::
401+
402402
#### Column properties
403403

404404
Column property usage example:

0 commit comments

Comments
 (0)