You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix gel example object name
* Fix step numbering
* Remove unused reference to gel CLI
Typically we direct people to use `npx gel` which handles downloading,
installing, and running the CLI. The `-new` docs already reflected this, so just
remove the extra reference to it here.
* A few more minor alignments
Copy file name to clipboardExpand all lines: src/content/docs/get-started/gel-existing.mdx
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,6 @@ import SetupEnv from '@mdx/get-started/SetupEnv.mdx';
25
25
<Prerequisites>
26
26
-**tsx** - package for running TypeScript files - [read here](https://tsx.is/)
27
27
-**gel-js** - package for querying your Gel database - [read here](https://github.com/geldata/gel-js)
28
-
-**gel** - cli tool to manage your Gel database - [read here](https://docs.geldata.com/reference/cli)
29
28
</Prerequisites>
30
29
31
30
Drizzle has native support for Gel connections with the `gel` client.
@@ -47,13 +46,13 @@ This is the basic file structure of the project. In the `src` directory, we have
47
46
└ 📜 tsconfig.json
48
47
```
49
48
50
-
#### Step 4 - Install **gel** package
49
+
#### Step 1 - Install required packages
51
50
<Npm>
52
51
drizzle-orm gel
53
52
-D drizzle-kit tsx
54
53
</Npm>
55
54
56
-
#### Step 5 - Setup Drizzle config file
55
+
#### Step 2 - Setup Drizzle config file
57
56
58
57
**Drizzle config** - a configuration file that is used by [Drizzle Kit](/docs/kit-overview) and contains all the information about your database connection, migration folder and schema files.
59
58
@@ -67,7 +66,7 @@ export default defineConfig({
67
66
});
68
67
```
69
68
70
-
#### Step 6 - Pull Gel types to Drizzle schema
69
+
#### Step 3 - Pull Gel types to Drizzle schema
71
70
72
71
Pull your database schema:
73
72
<Npx>
@@ -76,8 +75,7 @@ drizzle-kit pull
76
75
77
76
Here is an example of the generated schema.ts file:
78
77
79
-
```ts
80
-
// drizzle/schema.ts
78
+
```typescript filename="drizzle/schema.ts"
81
79
import { gelTable, uniqueIndex, uuid, smallint, text } from"drizzle-orm/gel-core"
0 commit comments