Skip to content

Commit 2b022ea

Browse files
fix: Fix sql queries
1 parent a7ade54 commit 2b022ea

File tree

9 files changed

+122
-122
lines changed

9 files changed

+122
-122
lines changed

src/content/docs/column-types/mysql.mdx

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const table = mysqlTable('table', {
2929

3030
```sql
3131
CREATE TABLE `table` (
32-
`int` int,
32+
`int` int
3333
);
3434
```
3535
</Section>
@@ -47,7 +47,7 @@ const table = mysqlTable('table', {
4747

4848
```sql
4949
CREATE TABLE `table` (
50-
`tinyint` tinyint,
50+
`tinyint` tinyint
5151
);
5252
```
5353
</Section>
@@ -65,7 +65,7 @@ const table = mysqlTable('table', {
6565

6666
```sql
6767
CREATE TABLE `table` (
68-
`smallint` smallint,
68+
`smallint` smallint
6969
);
7070
```
7171
</Section>
@@ -83,7 +83,7 @@ const table = mysqlTable('table', {
8383

8484
```sql
8585
CREATE TABLE `table` (
86-
`mediumint` mediumint,
86+
`mediumint` mediumint
8787
);
8888
```
8989
</Section>
@@ -108,7 +108,7 @@ bigint('...', { mode: 'number' | 'bigint', unsigned: true })
108108
```sql
109109
CREATE TABLE `table` (
110110
`bigint` bigint,
111-
`bigintUnsigned` bigint unsigned,
111+
`bigintUnsigned` bigint unsigned
112112
);
113113
```
114114
</Section>
@@ -130,7 +130,7 @@ const table = mysqlTable('table', {
130130

131131
```sql
132132
CREATE TABLE `table` (
133-
`real` real,
133+
`real` real
134134
);
135135
```
136136
</Section>
@@ -148,7 +148,7 @@ const table = mysqlTable('table', {
148148
```sql
149149
CREATE TABLE `table` (
150150
`realPrecision` real(1),
151-
`realPrecisionScale` real(1, 1),
151+
`realPrecisionScale` real(1, 1)
152152
);
153153
```
154154
</Section>
@@ -170,7 +170,7 @@ const table = mysqlTable('table', {
170170
CREATE TABLE `table` (
171171
`decimal` decimal,
172172
`decimalNum` decimal(30),
173-
`decimalBig` decimal(30),
173+
`decimalBig` decimal(30)
174174
);
175175
```
176176
</Section>
@@ -188,7 +188,7 @@ const table = mysqlTable('table', {
188188
```sql
189189
CREATE TABLE `table` (
190190
`decimalPrecision` decimal(1),
191-
`decimalPrecisionScale` decimal(1, 1),
191+
`decimalPrecisionScale` decimal(1, 1)
192192
);
193193
```
194194
</Section>
@@ -206,7 +206,7 @@ const table = mysqlTable('table', {
206206

207207
```sql
208208
CREATE TABLE `table` (
209-
`double` double,
209+
`double` double
210210
);
211211
```
212212
</Section>
@@ -224,7 +224,7 @@ const table = mysqlTable('table', {
224224
```sql
225225
CREATE TABLE `table` (
226226
`doublePrecision` double(1),
227-
`doublePrecisionScale` double(1, 1),
227+
`doublePrecisionScale` double(1, 1)
228228
);
229229
```
230230
</Section>
@@ -242,7 +242,7 @@ const table = mysqlTable('table', {
242242

243243
```sql
244244
CREATE TABLE `table` (
245-
`float` float,
245+
`float` float
246246
);
247247
```
248248
</Section>
@@ -265,7 +265,7 @@ const table = mysqlTable('table', {
265265

266266
```sql
267267
CREATE TABLE `table` (
268-
`serial` serial AUTO_INCREMENT,
268+
`serial` serial AUTO_INCREMENT
269269
);
270270
```
271271
</Section>
@@ -285,7 +285,7 @@ const table = mysqlTable('table', {
285285

286286
```sql
287287
CREATE TABLE `table` (
288-
`binary` binary,
288+
`binary` binary
289289
);
290290
```
291291
</Section>
@@ -303,7 +303,7 @@ const table = mysqlTable('table', {
303303

304304
```sql
305305
CREATE TABLE `table` (
306-
`varbinary` varbinary(2),
306+
`varbinary` varbinary(2)
307307
);
308308
```
309309
</Section>
@@ -323,7 +323,7 @@ const table = mysqlTable('table', {
323323

324324
```sql
325325
CREATE TABLE `table` (
326-
`char` char,
326+
`char` char
327327
);
328328
```
329329
</Section>
@@ -344,7 +344,7 @@ varchar: varchar({ length: 6, enum: ["value1", "value2"] })
344344

345345
```sql
346346
CREATE TABLE `table` (
347-
`varchar` varchar(2),
347+
`varchar` varchar(2)
348348
);
349349
```
350350
</Section>
@@ -367,7 +367,7 @@ text: text({ enum: ["value1", "value2"] });
367367

368368
```sql
369369
CREATE TABLE `table` (
370-
`text` text,
370+
`text` text
371371
);
372372
```
373373
</Section>
@@ -387,7 +387,7 @@ const table = mysqlTable('table', {
387387

388388
```sql
389389
CREATE TABLE `table` (
390-
`boolean` boolean,
390+
`boolean` boolean
391391
);
392392
```
393393
</Section>
@@ -407,7 +407,7 @@ const table = mysqlTable('table', {
407407

408408
```sql
409409
CREATE TABLE `table` (
410-
`date` date,
410+
`date` date
411411
);
412412
```
413413
</Section>
@@ -428,7 +428,7 @@ datetime('...', { fsp : 0..6}),
428428

429429
```sql
430430
CREATE TABLE `table` (
431-
`datetime` datetime,
431+
`datetime` datetime
432432
);
433433
```
434434
</Section>
@@ -444,7 +444,7 @@ const table = mysqlTable('table', {
444444

445445
```sql
446446
CREATE TABLE `table` (
447-
`datetime` datetime(6),
447+
`datetime` datetime(6)
448448
);
449449
```
450450
</Section>
@@ -466,7 +466,7 @@ time('...', { fsp: 0..6 }),
466466
```sql
467467
CREATE TABLE `table` (
468468
`time` time,
469-
`timefsp` time(6),
469+
`timefsp` time(6)
470470
);
471471
```
472472
</Section>
@@ -484,7 +484,7 @@ const table = mysqlTable('table', {
484484

485485
```sql
486486
CREATE TABLE `table` (
487-
`year` year,
487+
`year` year
488488
);
489489
```
490490
</Section>
@@ -505,7 +505,7 @@ timestamp('...', { fsp : 0..6}),
505505

506506
```sql
507507
CREATE TABLE `table` (
508-
`timestamp` timestamp,
508+
`timestamp` timestamp
509509
);
510510
```
511511
</Section>
@@ -521,7 +521,7 @@ const table = mysqlTable('table', {
521521

522522
```sql
523523
CREATE TABLE `table` (
524-
`timestamp` timestamp(6),
524+
`timestamp` timestamp(6)
525525
);
526526
```
527527
</Section>
@@ -537,7 +537,7 @@ const table = mysqlTable('table', {
537537

538538
```sql
539539
CREATE TABLE `table` (
540-
`timestamp` timestamp DEFAULT (now()),
540+
`timestamp` timestamp DEFAULT (now())
541541
);
542542
```
543543
</Section>
@@ -558,7 +558,7 @@ const table = mysqlTable('table', {
558558

559559
```sql
560560
CREATE TABLE `table` (
561-
`json` json,
561+
`json` json
562562
);
563563
```
564564
</Section>
@@ -591,7 +591,7 @@ const table = mysqlTable('table', {
591591

592592
```sql
593593
CREATE TABLE `table` (
594-
`popularity` enum('unknown','known','popular'),
594+
`popularity` enum('unknown','known','popular')
595595
);
596596
```
597597
</Section>
@@ -629,7 +629,7 @@ const table = mysqlTable('table', {
629629

630630
```sql
631631
CREATE TABLE `table` (
632-
`int` int NOT NULL,
632+
`int` int NOT NULL
633633
);
634634
```
635635
</Section>
@@ -655,7 +655,7 @@ const table = mysqlTable('table', {
655655

656656
```sql
657657
CREATE TABLE `table` (
658-
`int` int DEFAULT 3,
658+
`int` int DEFAULT 3
659659
);
660660
```
661661
</Section>
@@ -710,7 +710,7 @@ const table = mysqlTable('table', {
710710

711711
```sql
712712
CREATE TABLE `table` (
713-
`int` int PRIMARY KEY NOT NULL,
713+
`int` int PRIMARY KEY NOT NULL
714714
);
715715
```
716716
</Section>

0 commit comments

Comments
 (0)