File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -355,12 +355,12 @@ CREATE TABLE "users" (
355
355
<Tag style="font-size: 12px">**Option 6**</Tag>
356
356
> I want to have database schema in my TypeScript codebase,
357
357
> I want Drizzle to output the SQL representation of my Drizzle schema to the console,
358
- > and I will apply them to my database via Atlas
358
+ > and I will apply them to my database via [ Atlas](https://atlasgo.io/guides/orms/drizzle)
359
359
360
360
<Callout collapsed="Expand details">
361
361
That's a **codebase first** approach. You have your TypeScript Drizzle schema as a source of truth and
362
362
Drizzle let's you export SQL statements based on your schema changes with [ ` drizzle - kit export ` ](/docs/drizzle-kit-generate) and then
363
- you can apply them to the database via external migration tools.
363
+ you can apply them to the database via [Atlas](https://atlasgo.io/guides/orms/drizzle) or other external SQL migration tools.
364
364
365
365
<Section>
366
366
` ` ` typescript filename = " src/schema.ts"
@@ -379,11 +379,8 @@ export const users = p.pgTable("users", {
379
379
│
380
380
└ 1. read your drizzle schema
381
381
2. generated SQL representation of your schema
382
- ┌ 4 . outputs to console
382
+ ┌ 3 . outputs to console
383
383
│
384
- │
385
- │
386
- │
387
384
│
388
385
v
389
386
` ` `
You can’t perform that action at this time.
0 commit comments