@@ -20,7 +20,7 @@ A signed integer, stored in `0`, `1`, `2`, `3`, `4`, `6`, or `8` bytes depending
20
20
21
21
<Section >
22
22
``` typescript
23
- import { int , singlestoreTable } from " drizzle-orm/mysql -core" ;
23
+ import { int , singlestoreTable } from " drizzle-orm/singlestore -core" ;
24
24
25
25
const table = singlestoreTable (' table' , {
26
26
int: int ()
@@ -38,7 +38,7 @@ CREATE TABLE `table` (
38
38
39
39
<Section >
40
40
``` typescript
41
- import { tinyint , singlestoreTable } from " drizzle-orm/mysql -core" ;
41
+ import { tinyint , singlestoreTable } from " drizzle-orm/singlestore -core" ;
42
42
43
43
const table = singlestoreTable (' table' , {
44
44
tinyint: tinyint ()
@@ -56,7 +56,7 @@ CREATE TABLE `table` (
56
56
57
57
<Section >
58
58
``` typescript
59
- import { smallint , singlestoreTable } from " drizzle-orm/mysql -core" ;
59
+ import { smallint , singlestoreTable } from " drizzle-orm/singlestore -core" ;
60
60
61
61
const table = singlestoreTable (' table' , {
62
62
smallint: smallint ()
@@ -74,7 +74,7 @@ CREATE TABLE `table` (
74
74
75
75
<Section >
76
76
``` typescript
77
- import { mediumint , singlestoreTable } from " drizzle-orm/mysql -core" ;
77
+ import { mediumint , singlestoreTable } from " drizzle-orm/singlestore -core" ;
78
78
79
79
const table = singlestoreTable (' table' , {
80
80
mediumint: mediumint ()
@@ -92,7 +92,7 @@ CREATE TABLE `table` (
92
92
93
93
<Section >
94
94
``` typescript
95
- import { bigint , singlestoreTable } from " drizzle-orm/mysql -core" ;
95
+ import { bigint , singlestoreTable } from " drizzle-orm/singlestore -core" ;
96
96
97
97
const table = singlestoreTable (' table' , {
98
98
bigint: bigint ({ mode: ' number' })
@@ -121,7 +121,7 @@ We've omitted config of `M` in `bigint(M)`, since it indicates the display width
121
121
122
122
<Section >
123
123
``` typescript
124
- import { real , singlestoreTable } from " drizzle-orm/mysql -core" ;
124
+ import { real , singlestoreTable } from " drizzle-orm/singlestore -core" ;
125
125
126
126
const table = singlestoreTable (' table' , {
127
127
real: real ()
@@ -137,7 +137,7 @@ CREATE TABLE `table` (
137
137
138
138
<Section >
139
139
``` typescript
140
- import { real , singlestoreTable } from " drizzle-orm/mysql -core" ;
140
+ import { real , singlestoreTable } from " drizzle-orm/singlestore -core" ;
141
141
142
142
const table = singlestoreTable (' table' , {
143
143
realPrecision: real ({ precision: 1 ,}),
@@ -157,7 +157,7 @@ CREATE TABLE `table` (
157
157
158
158
<Section >
159
159
``` typescript
160
- import { decimal , singlestoreTable } from " drizzle-orm/mysql -core" ;
160
+ import { decimal , singlestoreTable } from " drizzle-orm/singlestore -core" ;
161
161
162
162
const table = singlestoreTable (' table' , {
163
163
decimal: decimal (),
@@ -177,7 +177,7 @@ CREATE TABLE `table` (
177
177
178
178
<Section >
179
179
``` typescript
180
- import { decimal , singlestoreTable } from " drizzle-orm/mysql -core" ;
180
+ import { decimal , singlestoreTable } from " drizzle-orm/singlestore -core" ;
181
181
182
182
const table = singlestoreTable (' table' , {
183
183
decimalPrecision: decimal ({ precision: 1 ,}),
@@ -197,7 +197,7 @@ CREATE TABLE `table` (
197
197
198
198
<Section >
199
199
``` typescript
200
- import { double , singlestoreTable } from " drizzle-orm/mysql -core" ;
200
+ import { double , singlestoreTable } from " drizzle-orm/singlestore -core" ;
201
201
202
202
const table = singlestoreTable (' table' , {
203
203
double: double (' double' )
@@ -213,7 +213,7 @@ CREATE TABLE `table` (
213
213
214
214
<Section >
215
215
``` typescript
216
- import { double , singlestoreTable } from " drizzle-orm/mysql -core" ;
216
+ import { double , singlestoreTable } from " drizzle-orm/singlestore -core" ;
217
217
218
218
const table = singlestoreTable (' table' , {
219
219
doublePrecision: double ({ precision: 1 ,}),
@@ -233,7 +233,7 @@ CREATE TABLE `table` (
233
233
234
234
<Section >
235
235
``` typescript
236
- import { float , singlestoreTable } from " drizzle-orm/mysql -core" ;
236
+ import { float , singlestoreTable } from " drizzle-orm/singlestore -core" ;
237
237
238
238
const table = singlestoreTable (' table' , {
239
239
float: float ()
@@ -256,7 +256,7 @@ CREATE TABLE `table` (
256
256
` SERIAL ` is an alias for ` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE ` .
257
257
258
258
``` typescript
259
- import { serial , singlestoreTable } from " drizzle-orm/mysql -core" ;
259
+ import { serial , singlestoreTable } from " drizzle-orm/singlestore -core" ;
260
260
261
261
const table = singlestoreTable (' table' , {
262
262
serial: serial ()
@@ -276,7 +276,7 @@ CREATE TABLE `table` (
276
276
277
277
<Section >
278
278
``` typescript
279
- import { binary , singlestoreTable } from " drizzle-orm/mysql -core" ;
279
+ import { binary , singlestoreTable } from " drizzle-orm/singlestore -core" ;
280
280
281
281
const table = singlestoreTable (' table' , {
282
282
binary: binary ()
@@ -294,7 +294,7 @@ CREATE TABLE `table` (
294
294
295
295
<Section >
296
296
``` typescript
297
- import { varbinary , singlestoreTable } from " drizzle-orm/mysql -core" ;
297
+ import { varbinary , singlestoreTable } from " drizzle-orm/singlestore -core" ;
298
298
299
299
const table = singlestoreTable (' table' , {
300
300
varbinary: varbinary ({ length: 2 }),
@@ -314,7 +314,7 @@ CREATE TABLE `table` (
314
314
315
315
<Section >
316
316
``` typescript
317
- import { char , singlestoreTable } from " drizzle-orm/mysql -core" ;
317
+ import { char , singlestoreTable } from " drizzle-orm/singlestore -core" ;
318
318
319
319
const table = singlestoreTable (' table' , {
320
320
char: char (),
@@ -332,7 +332,7 @@ CREATE TABLE `table` (
332
332
You can define ` { enum: ["value1", "value2"] } ` config to infer ` insert ` and ` select ` types, it ** won't** check runtime values.
333
333
<Section >
334
334
``` typescript
335
- import { varchar , singlestoreTable } from " drizzle-orm/mysql -core" ;
335
+ import { varchar , singlestoreTable } from " drizzle-orm/singlestore -core" ;
336
336
337
337
const table = singlestoreTable (' table' , {
338
338
varchar: varchar ({ length: 2 }),
@@ -355,7 +355,7 @@ You can define `{ enum: ["value1", "value2"] }` config to infer `insert` and `se
355
355
356
356
<Section >
357
357
``` typescript
358
- import { text , singlestoreTable } from " drizzle-orm/mysql -core" ;
358
+ import { text , singlestoreTable } from " drizzle-orm/singlestore -core" ;
359
359
360
360
const table = singlestoreTable (' table' , {
361
361
text: text (),
@@ -378,7 +378,7 @@ CREATE TABLE `table` (
378
378
379
379
<Section >
380
380
``` typescript
381
- import { boolean , singlestoreTable } from " drizzle-orm/mysql -core" ;
381
+ import { boolean , singlestoreTable } from " drizzle-orm/singlestore -core" ;
382
382
383
383
const table = singlestoreTable (' table' , {
384
384
boolean: boolean (),
@@ -398,7 +398,7 @@ CREATE TABLE `table` (
398
398
399
399
<Section >
400
400
``` typescript
401
- import { boolean , singlestoreTable } from " drizzle-orm/mysql -core" ;
401
+ import { boolean , singlestoreTable } from " drizzle-orm/singlestore -core" ;
402
402
403
403
const table = singlestoreTable (' table' , {
404
404
date: date (),
@@ -416,7 +416,7 @@ CREATE TABLE `table` (
416
416
417
417
<Section >
418
418
``` typescript
419
- import { datetime , singlestoreTable } from " drizzle-orm/mysql -core" ;
419
+ import { datetime , singlestoreTable } from " drizzle-orm/singlestore -core" ;
420
420
421
421
const table = singlestoreTable (' table' , {
422
422
datetime: datetime (),
@@ -436,7 +436,7 @@ CREATE TABLE `table` (
436
436
437
437
<Section >
438
438
``` typescript
439
- import { time , singlestoreTable } from " drizzle-orm/mysql -core" ;
439
+ import { time , singlestoreTable } from " drizzle-orm/singlestore -core" ;
440
440
441
441
const table = singlestoreTable (' table' , {
442
442
time: time (),
@@ -454,7 +454,7 @@ CREATE TABLE `table` (
454
454
455
455
<Section >
456
456
``` typescript
457
- import { year , singlestoreTable } from " drizzle-orm/mysql -core" ;
457
+ import { year , singlestoreTable } from " drizzle-orm/singlestore -core" ;
458
458
459
459
const table = singlestoreTable (' table' , {
460
460
year: year (),
@@ -472,7 +472,7 @@ CREATE TABLE `table` (
472
472
473
473
<Section >
474
474
``` typescript
475
- import { timestamp , singlestoreTable } from " drizzle-orm/mysql -core" ;
475
+ import { timestamp , singlestoreTable } from " drizzle-orm/singlestore -core" ;
476
476
477
477
const table = singlestoreTable (' table' , {
478
478
timestamp: timestamp (),
@@ -490,7 +490,7 @@ CREATE TABLE `table` (
490
490
491
491
<Section >
492
492
``` typescript
493
- import { timestamp , singlestoreTable } from " drizzle-orm/mysql -core" ;
493
+ import { timestamp , singlestoreTable } from " drizzle-orm/singlestore -core" ;
494
494
495
495
const table = singlestoreTable (' table' , {
496
496
timestamp: timestamp ().defaultNow (),
@@ -510,7 +510,7 @@ CREATE TABLE `table` (
510
510
511
511
<Section >
512
512
``` typescript
513
- import { json , singlestoreTable } from " drizzle-orm/mysql -core" ;
513
+ import { json , singlestoreTable } from " drizzle-orm/singlestore -core" ;
514
514
515
515
const table = singlestoreTable (' table' , {
516
516
json: json (),
@@ -544,10 +544,10 @@ json: json().$type<string[]>().default({});
544
544
545
545
<Section >
546
546
``` typescript
547
- import { mysqlEnum , singlestoreTable } from " drizzle-orm/mysql -core" ;
547
+ import { singlestoreEnum , singlestoreTable } from " drizzle-orm/singlestore -core" ;
548
548
549
549
const table = singlestoreTable (' table' , {
550
- mysqlEnum: mysqlEnum ([' unknown' , ' known' , ' popular' ]),
550
+ popularity: singlestoreEnum ([' unknown' , ' known' , ' popular' ]),
551
551
});
552
552
```
553
553
@@ -582,7 +582,7 @@ const users = singlestoreTable('users', {
582
582
583
583
<Section >
584
584
``` typescript
585
- import { int , singlestoreTable } from " drizzle-orm/mysql -core" ;
585
+ import { int , singlestoreTable } from " drizzle-orm/singlestore -core" ;
586
586
587
587
const table = singlestoreTable (' table' , {
588
588
int: int ().notNull (),
@@ -608,7 +608,7 @@ a string constant, a blob constant, a signed-number, or any constant expression
608
608
609
609
<Section >
610
610
``` typescript
611
- import { int , singlestoreTable } from " drizzle-orm/mysql -core" ;
611
+ import { int , singlestoreTable } from " drizzle-orm/singlestore -core" ;
612
612
613
613
const table = singlestoreTable (' table' , {
614
614
int: int ().default (3 ),
@@ -631,7 +631,7 @@ These functions can assist you in utilizing various implementations such as `uui
631
631
</Callout >
632
632
633
633
``` ts
634
- import { varchar , singlestoreTable } from " drizzle-orm/mysql -core" ;
634
+ import { varchar , singlestoreTable } from " drizzle-orm/singlestore -core" ;
635
635
import { createId } from ' @paralleldrive/cuid2' ;
636
636
637
637
const table = singlestoreTable (' table' , {
@@ -652,7 +652,7 @@ when the row is inserted as well, and the returned value will be used as the col
652
652
</Callout >
653
653
654
654
``` ts
655
- import { text , singlestoreTable } from " drizzle-orm/mysql -core" ;
655
+ import { text , singlestoreTable } from " drizzle-orm/singlestore -core" ;
656
656
657
657
const table = singlestoreTable (' table' , {
658
658
alwaysNull: text ().$type <string | null >().$onUpdate (() => null ),
@@ -663,7 +663,7 @@ const table = singlestoreTable('table', {
663
663
664
664
<Section >
665
665
``` typescript
666
- import { int , singlestoreTable } from " drizzle-orm/mysql -core" ;
666
+ import { int , singlestoreTable } from " drizzle-orm/singlestore -core" ;
667
667
668
668
const table = singlestoreTable (' table' , {
669
669
int: int ().primaryKey (),
@@ -681,7 +681,7 @@ CREATE TABLE `table` (
681
681
682
682
<Section >
683
683
``` typescript
684
- import { int , singlestoreTable } from " drizzle-orm/mysql -core" ;
684
+ import { int , singlestoreTable } from " drizzle-orm/singlestore -core" ;
685
685
686
686
const table = singlestoreTable (' table' , {
687
687
int: int ().autoincrement (),
0 commit comments