Skip to content

Commit 676a708

Browse files
fix: Fix imports
1 parent e4b7f0c commit 676a708

File tree

3 files changed

+38
-38
lines changed

3 files changed

+38
-38
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ json: json().$type<string[]>().default({});
585585
import { mysqlEnum, mysqlTable } from "drizzle-orm/mysql-core";
586586

587587
const table = mysqlTable('table', {
588-
mysqlEnum: mysqlEnum(['unknown', 'known', 'popular']),
588+
popularity: mysqlEnum(['unknown', 'known', 'popular']),
589589
});
590590
```
591591

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

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ A signed integer, stored in `0`, `1`, `2`, `3`, `4`, `6`, or `8` bytes depending
2020

2121
<Section>
2222
```typescript
23-
import { int, singlestoreTable } from "drizzle-orm/mysql-core";
23+
import { int, singlestoreTable } from "drizzle-orm/singlestore-core";
2424

2525
const table = singlestoreTable('table', {
2626
int: int()
@@ -38,7 +38,7 @@ CREATE TABLE `table` (
3838

3939
<Section>
4040
```typescript
41-
import { tinyint, singlestoreTable } from "drizzle-orm/mysql-core";
41+
import { tinyint, singlestoreTable } from "drizzle-orm/singlestore-core";
4242

4343
const table = singlestoreTable('table', {
4444
tinyint: tinyint()
@@ -56,7 +56,7 @@ CREATE TABLE `table` (
5656

5757
<Section>
5858
```typescript
59-
import { smallint, singlestoreTable } from "drizzle-orm/mysql-core";
59+
import { smallint, singlestoreTable } from "drizzle-orm/singlestore-core";
6060

6161
const table = singlestoreTable('table', {
6262
smallint: smallint()
@@ -74,7 +74,7 @@ CREATE TABLE `table` (
7474

7575
<Section>
7676
```typescript
77-
import { mediumint, singlestoreTable } from "drizzle-orm/mysql-core";
77+
import { mediumint, singlestoreTable } from "drizzle-orm/singlestore-core";
7878

7979
const table = singlestoreTable('table', {
8080
mediumint: mediumint()
@@ -92,7 +92,7 @@ CREATE TABLE `table` (
9292

9393
<Section>
9494
```typescript
95-
import { bigint, singlestoreTable } from "drizzle-orm/mysql-core";
95+
import { bigint, singlestoreTable } from "drizzle-orm/singlestore-core";
9696

9797
const table = singlestoreTable('table', {
9898
bigint: bigint({ mode: 'number' })
@@ -121,7 +121,7 @@ We've omitted config of `M` in `bigint(M)`, since it indicates the display width
121121

122122
<Section>
123123
```typescript
124-
import { real, singlestoreTable } from "drizzle-orm/mysql-core";
124+
import { real, singlestoreTable } from "drizzle-orm/singlestore-core";
125125

126126
const table = singlestoreTable('table', {
127127
real: real()
@@ -137,7 +137,7 @@ CREATE TABLE `table` (
137137

138138
<Section>
139139
```typescript
140-
import { real, singlestoreTable } from "drizzle-orm/mysql-core";
140+
import { real, singlestoreTable } from "drizzle-orm/singlestore-core";
141141

142142
const table = singlestoreTable('table', {
143143
realPrecision: real({ precision: 1,}),
@@ -157,7 +157,7 @@ CREATE TABLE `table` (
157157

158158
<Section>
159159
```typescript
160-
import { decimal, singlestoreTable } from "drizzle-orm/mysql-core";
160+
import { decimal, singlestoreTable } from "drizzle-orm/singlestore-core";
161161

162162
const table = singlestoreTable('table', {
163163
decimal: decimal(),
@@ -177,7 +177,7 @@ CREATE TABLE `table` (
177177

178178
<Section>
179179
```typescript
180-
import { decimal, singlestoreTable } from "drizzle-orm/mysql-core";
180+
import { decimal, singlestoreTable } from "drizzle-orm/singlestore-core";
181181

182182
const table = singlestoreTable('table', {
183183
decimalPrecision: decimal({ precision: 1,}),
@@ -197,7 +197,7 @@ CREATE TABLE `table` (
197197

198198
<Section>
199199
```typescript
200-
import { double, singlestoreTable } from "drizzle-orm/mysql-core";
200+
import { double, singlestoreTable } from "drizzle-orm/singlestore-core";
201201

202202
const table = singlestoreTable('table', {
203203
double: double('double')
@@ -213,7 +213,7 @@ CREATE TABLE `table` (
213213

214214
<Section>
215215
```typescript
216-
import { double, singlestoreTable } from "drizzle-orm/mysql-core";
216+
import { double, singlestoreTable } from "drizzle-orm/singlestore-core";
217217

218218
const table = singlestoreTable('table', {
219219
doublePrecision: double({ precision: 1,}),
@@ -233,7 +233,7 @@ CREATE TABLE `table` (
233233

234234
<Section>
235235
```typescript
236-
import { float, singlestoreTable } from "drizzle-orm/mysql-core";
236+
import { float, singlestoreTable } from "drizzle-orm/singlestore-core";
237237

238238
const table = singlestoreTable('table', {
239239
float: float()
@@ -256,7 +256,7 @@ CREATE TABLE `table` (
256256
`SERIAL` is an alias for `BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE`.
257257

258258
```typescript
259-
import { serial, singlestoreTable } from "drizzle-orm/mysql-core";
259+
import { serial, singlestoreTable } from "drizzle-orm/singlestore-core";
260260

261261
const table = singlestoreTable('table', {
262262
serial: serial()
@@ -276,7 +276,7 @@ CREATE TABLE `table` (
276276

277277
<Section>
278278
```typescript
279-
import { binary, singlestoreTable } from "drizzle-orm/mysql-core";
279+
import { binary, singlestoreTable } from "drizzle-orm/singlestore-core";
280280

281281
const table = singlestoreTable('table', {
282282
binary: binary()
@@ -294,7 +294,7 @@ CREATE TABLE `table` (
294294

295295
<Section>
296296
```typescript
297-
import { varbinary, singlestoreTable } from "drizzle-orm/mysql-core";
297+
import { varbinary, singlestoreTable } from "drizzle-orm/singlestore-core";
298298

299299
const table = singlestoreTable('table', {
300300
varbinary: varbinary({ length: 2}),
@@ -314,7 +314,7 @@ CREATE TABLE `table` (
314314

315315
<Section>
316316
```typescript
317-
import { char, singlestoreTable } from "drizzle-orm/mysql-core";
317+
import { char, singlestoreTable } from "drizzle-orm/singlestore-core";
318318

319319
const table = singlestoreTable('table', {
320320
char: char(),
@@ -332,7 +332,7 @@ CREATE TABLE `table` (
332332
You can define `{ enum: ["value1", "value2"] }` config to infer `insert` and `select` types, it **won't** check runtime values.
333333
<Section>
334334
```typescript
335-
import { varchar, singlestoreTable } from "drizzle-orm/mysql-core";
335+
import { varchar, singlestoreTable } from "drizzle-orm/singlestore-core";
336336

337337
const table = singlestoreTable('table', {
338338
varchar: varchar({ length: 2 }),
@@ -355,7 +355,7 @@ You can define `{ enum: ["value1", "value2"] }` config to infer `insert` and `se
355355

356356
<Section>
357357
```typescript
358-
import { text, singlestoreTable } from "drizzle-orm/mysql-core";
358+
import { text, singlestoreTable } from "drizzle-orm/singlestore-core";
359359

360360
const table = singlestoreTable('table', {
361361
text: text(),
@@ -378,7 +378,7 @@ CREATE TABLE `table` (
378378

379379
<Section>
380380
```typescript
381-
import { boolean, singlestoreTable } from "drizzle-orm/mysql-core";
381+
import { boolean, singlestoreTable } from "drizzle-orm/singlestore-core";
382382

383383
const table = singlestoreTable('table', {
384384
boolean: boolean(),
@@ -398,7 +398,7 @@ CREATE TABLE `table` (
398398

399399
<Section>
400400
```typescript
401-
import { boolean, singlestoreTable } from "drizzle-orm/mysql-core";
401+
import { boolean, singlestoreTable } from "drizzle-orm/singlestore-core";
402402

403403
const table = singlestoreTable('table', {
404404
date: date(),
@@ -416,7 +416,7 @@ CREATE TABLE `table` (
416416

417417
<Section>
418418
```typescript
419-
import { datetime, singlestoreTable } from "drizzle-orm/mysql-core";
419+
import { datetime, singlestoreTable } from "drizzle-orm/singlestore-core";
420420

421421
const table = singlestoreTable('table', {
422422
datetime: datetime(),
@@ -436,7 +436,7 @@ CREATE TABLE `table` (
436436

437437
<Section>
438438
```typescript
439-
import { time, singlestoreTable } from "drizzle-orm/mysql-core";
439+
import { time, singlestoreTable } from "drizzle-orm/singlestore-core";
440440

441441
const table = singlestoreTable('table', {
442442
time: time(),
@@ -454,7 +454,7 @@ CREATE TABLE `table` (
454454

455455
<Section>
456456
```typescript
457-
import { year, singlestoreTable } from "drizzle-orm/mysql-core";
457+
import { year, singlestoreTable } from "drizzle-orm/singlestore-core";
458458

459459
const table = singlestoreTable('table', {
460460
year: year(),
@@ -472,7 +472,7 @@ CREATE TABLE `table` (
472472

473473
<Section>
474474
```typescript
475-
import { timestamp, singlestoreTable } from "drizzle-orm/mysql-core";
475+
import { timestamp, singlestoreTable } from "drizzle-orm/singlestore-core";
476476

477477
const table = singlestoreTable('table', {
478478
timestamp: timestamp(),
@@ -490,7 +490,7 @@ CREATE TABLE `table` (
490490

491491
<Section>
492492
```typescript
493-
import { timestamp, singlestoreTable } from "drizzle-orm/mysql-core";
493+
import { timestamp, singlestoreTable } from "drizzle-orm/singlestore-core";
494494

495495
const table = singlestoreTable('table', {
496496
timestamp: timestamp().defaultNow(),
@@ -510,7 +510,7 @@ CREATE TABLE `table` (
510510

511511
<Section>
512512
```typescript
513-
import { json, singlestoreTable } from "drizzle-orm/mysql-core";
513+
import { json, singlestoreTable } from "drizzle-orm/singlestore-core";
514514

515515
const table = singlestoreTable('table', {
516516
json: json(),
@@ -544,10 +544,10 @@ json: json().$type<string[]>().default({});
544544

545545
<Section>
546546
```typescript
547-
import { mysqlEnum, singlestoreTable } from "drizzle-orm/mysql-core";
547+
import { singlestoreEnum, singlestoreTable } from "drizzle-orm/singlestore-core";
548548

549549
const table = singlestoreTable('table', {
550-
mysqlEnum: mysqlEnum(['unknown', 'known', 'popular']),
550+
popularity: singlestoreEnum(['unknown', 'known', 'popular']),
551551
});
552552
```
553553

@@ -582,7 +582,7 @@ const users = singlestoreTable('users', {
582582

583583
<Section>
584584
```typescript
585-
import { int, singlestoreTable } from "drizzle-orm/mysql-core";
585+
import { int, singlestoreTable } from "drizzle-orm/singlestore-core";
586586

587587
const table = singlestoreTable('table', {
588588
int: int().notNull(),
@@ -608,7 +608,7 @@ a string constant, a blob constant, a signed-number, or any constant expression
608608

609609
<Section>
610610
```typescript
611-
import { int, singlestoreTable } from "drizzle-orm/mysql-core";
611+
import { int, singlestoreTable } from "drizzle-orm/singlestore-core";
612612

613613
const table = singlestoreTable('table', {
614614
int: int().default(3),
@@ -631,7 +631,7 @@ These functions can assist you in utilizing various implementations such as `uui
631631
</Callout>
632632

633633
```ts
634-
import { varchar, singlestoreTable } from "drizzle-orm/mysql-core";
634+
import { varchar, singlestoreTable } from "drizzle-orm/singlestore-core";
635635
import { createId } from '@paralleldrive/cuid2';
636636

637637
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
652652
</Callout>
653653

654654
```ts
655-
import { text, singlestoreTable } from "drizzle-orm/mysql-core";
655+
import { text, singlestoreTable } from "drizzle-orm/singlestore-core";
656656

657657
const table = singlestoreTable('table', {
658658
alwaysNull: text().$type<string | null>().$onUpdate(() => null),
@@ -663,7 +663,7 @@ const table = singlestoreTable('table', {
663663

664664
<Section>
665665
```typescript
666-
import { int, singlestoreTable } from "drizzle-orm/mysql-core";
666+
import { int, singlestoreTable } from "drizzle-orm/singlestore-core";
667667

668668
const table = singlestoreTable('table', {
669669
int: int().primaryKey(),
@@ -681,7 +681,7 @@ CREATE TABLE `table` (
681681

682682
<Section>
683683
```typescript
684-
import { int, singlestoreTable } from "drizzle-orm/mysql-core";
684+
import { int, singlestoreTable } from "drizzle-orm/singlestore-core";
685685

686686
const table = singlestoreTable('table', {
687687
int: int().autoincrement(),

src/content/docs/schemas.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ If you declare an entity within a schema, query builder will prepend schema name
1717
<Tab>
1818
<Section>
1919
```ts copy {3,5,7}
20-
import { serial, text, pgTable, pgSchema } from "drizzle-orm/pg-core";
20+
import { serial, text, pgSchema } from "drizzle-orm/pg-core";
2121

2222
export const mySchema = pgSchema("my_schema");
2323

@@ -47,7 +47,7 @@ If you declare an entity within a schema, query builder will prepend schema name
4747
<Tab>
4848
<Section>
4949
```ts {3,5}
50-
import { int, text, mysqlTable, mysqlSchema } from "drizzle-orm/mysql-core";
50+
import { int, text, mysqlSchema } from "drizzle-orm/mysql-core";
5151

5252
export const mySchema = mysqlSchema("my_schema")
5353

@@ -72,7 +72,7 @@ If you declare an entity within a schema, query builder will prepend schema name
7272
<Tab>
7373
<Section>
7474
```ts {3,5}
75-
import { int, text, mysqlTable, singlestoreSchema } from "drizzle-orm/singlestore-core";
75+
import { int, text, singlestoreSchema } from "drizzle-orm/singlestore-core";
7676

7777
export const mySchema = singlestoreSchema("my_schema")
7878

0 commit comments

Comments
 (0)