Skip to content

Commit e75babc

Browse files
committed
docs: update EdgeDB references to Gel rebrand
Update all EdgeDB documentation to reflect rebrand to Gel: - Update guide title from "Use EdgeDB with Bun" to "Use Gel with Bun" - Update CLI commands (edgedb → gel) - Update npm packages (edgedb → gel, @edgedb/generate → @gel/generate) - Update installation URLs and scripts - Update all code examples and imports - Add "(formerly EdgeDB)" note to description Fixes #17721
1 parent 0db90b2 commit e75babc

File tree

3 files changed

+40
-40
lines changed

3 files changed

+40
-40
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ bun upgrade --canary
230230

231231
- Ecosystem
232232
- [Use React and JSX](https://bun.com/guides/ecosystem/react)
233-
- [Use EdgeDB with Bun](https://bun.com/guides/ecosystem/edgedb)
233+
- [Use Gel with Bun](https://bun.com/guides/ecosystem/edgedb)
234234
- [Use Prisma with Bun](https://bun.com/guides/ecosystem/prisma)
235235
- [Add Sentry to a Bun app](https://bun.com/guides/ecosystem/sentry)
236236
- [Create a Discord bot](https://bun.com/guides/ecosystem/discordjs)

docs/guides/ecosystem/edgedb.mdx

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
2-
title: Use EdgeDB with Bun
3-
sidebarTitle: EdgeDB with Bun
2+
title: Use Gel with Bun
3+
sidebarTitle: Gel with Bun
44
mode: center
55
---
66

7-
EdgeDB is a graph-relational database powered by Postgres under the hood. It provides a declarative schema language, migrations system, and object-oriented query language, in addition to supporting raw SQL queries. It solves the object-relational mapping problem at the database layer, eliminating the need for an ORM library in your application code.
7+
Gel (formerly EdgeDB) is a graph-relational database powered by Postgres under the hood. It provides a declarative schema language, migrations system, and object-oriented query language, in addition to supporting raw SQL queries. It solves the object-relational mapping problem at the database layer, eliminating the need for an ORM library in your application code.
88

99
---
1010

11-
First, [install EdgeDB](https://www.edgedb.com/install) if you haven't already.
11+
First, [install Gel](https://www.geldata.com/install) if you haven't already.
1212

1313
<CodeGroup>
1414

1515
```sh Linux/macOS terminal icon="terminal"
16-
curl --proto '=https' --tlsv1.2 -sSf https://sh.edgedb.com | sh
16+
curl https://www.geldata.com/sh --proto "=https" -sSf1 | sh
1717
```
1818

1919
```sh Windows terminal icon="windows"
20-
iwr https://ps1.edgedb.com -useb | iex
20+
irm https://www.geldata.com/ps1 | iex
2121
```
2222

2323
</CodeGroup>
@@ -34,44 +34,44 @@ bun init -y
3434

3535
---
3636

37-
We'll use the EdgeDB CLI to initialize an EdgeDB instance for our project. This creates an `edgedb.toml` file in our project root.
37+
We'll use the Gel CLI to initialize a Gel instance for our project. This creates a `gel.toml` file in our project root.
3838

3939
```sh terminal icon="terminal"
40-
edgedb project init
40+
gel project init
4141
```
4242

4343
```txt
44-
No `edgedb.toml` found in `/Users/colinmcd94/Documents/bun/fun/examples/my-edgedb-app` or above
44+
No `gel.toml` found in `/Users/colinmcd94/Documents/bun/fun/examples/my-gel-app` or above
4545
Do you want to initialize a new project? [Y/n]
4646
> Y
47-
Specify the name of EdgeDB instance to use with this project [default: my_edgedb_app]:
48-
> my_edgedb_app
49-
Checking EdgeDB versions...
50-
Specify the version of EdgeDB to use with this project [default: x.y]:
47+
Specify the name of Gel instance to use with this project [default: my_gel_app]:
48+
> my_gel_app
49+
Checking Gel versions...
50+
Specify the version of Gel to use with this project [default: x.y]:
5151
> x.y
52-
┌─────────────────────┬────────────────────────────────────────────────────────────────────────
53-
│ Project directory │ /Users/colinmcd94/Documents/bun/fun/examples/my-edgedb-app
54-
│ Project config │ /Users/colinmcd94/Documents/bun/fun/examples/my-edgedb-app/edgedb.toml
55-
│ Schema dir (empty) │ /Users/colinmcd94/Documents/bun/fun/examples/my-edgedb-app/dbschema
56-
│ Installation method │ portable package
57-
│ Version │ x.y+6d5921b
58-
│ Instance name │ my_edgedb_app
59-
└─────────────────────┴────────────────────────────────────────────────────────────────────────
52+
┌─────────────────────┬──────────────────────────────────────────────────────────────────┐
53+
│ Project directory │ /Users/colinmcd94/Documents/bun/fun/examples/my-gel-app │
54+
│ Project config │ /Users/colinmcd94/Documents/bun/fun/examples/my-gel-app/gel.toml│
55+
│ Schema dir (empty) │ /Users/colinmcd94/Documents/bun/fun/examples/my-gel-app/dbschema│
56+
│ Installation method │ portable package │
57+
│ Version │ x.y+6d5921b │
58+
│ Instance name │ my_gel_app
59+
└─────────────────────┴──────────────────────────────────────────────────────────────────┘
6060
Version x.y+6d5921b is already downloaded
61-
Initializing EdgeDB instance...
61+
Initializing Gel instance...
6262
Applying migrations...
6363
Everything is up to date. Revision initial
6464
Project initialized.
65-
To connect to my_edgedb_app, run `edgedb`
65+
To connect to my_gel_app, run `gel`
6666
```
6767

6868
---
6969

7070
To see if the database is running, let's open a REPL and run a simple query.
7171

7272
```sh terminal icon="terminal"
73-
edgedb
74-
edgedb> select 1 + 1;
73+
gel
74+
gel> select 1 + 1;
7575
```
7676
7777
```txt
@@ -81,12 +81,12 @@ edgedb> select 1 + 1;
8181
Then run `\quit` to exit the REPL.
8282
8383
```sh terminal icon="terminal"
84-
edgedb> \quit
84+
gel> \quit
8585
```
8686
8787
---
8888
89-
With the project initialized, we can define a schema. The `edgedb project init` command already created a `dbschema/default.esdl` file to contain our schema.
89+
With the project initialized, we can define a schema. The `gel project init` command already created a `dbschema/default.esdl` file to contain our schema.
9090
9191
```txt File Tree icon="folder-tree"
9292
dbschema
@@ -112,15 +112,15 @@ module default {
112112
Then generate and apply an initial migration.
113113
114114
```sh terminal icon="terminal"
115-
edgedb migration create
115+
gel migration create
116116
```
117117
118118
```txt
119-
Created /Users/colinmcd94/Documents/bun/fun/examples/my-edgedb-app/dbschema/migrations/00001.edgeql, id: m1uwekrn4ni4qs7ul7hfar4xemm5kkxlpswolcoyqj3xdhweomwjrq
119+
Created /Users/colinmcd94/Documents/bun/fun/examples/my-gel-app/dbschema/migrations/00001.edgeql, id: m1uwekrn4ni4qs7ul7hfar4xemm5kkxlpswolcoyqj3xdhweomwjrq
120120
```
121121
122122
```sh terminal icon="terminal"
123-
edgedb migrate
123+
gel migrate
124124
```
125125
126126
```txt
@@ -129,11 +129,11 @@ Applied m1uwekrn4ni4qs7ul7hfar4xemm5kkxlpswolcoyqj3xdhweomwjrq (00001.edgeql)
129129
130130
---
131131
132-
With our schema applied, let's execute some queries using EdgeDB's JavaScript client library. We'll install the client library and EdgeDB's codegen CLI, and create a `seed.ts`.file.
132+
With our schema applied, let's execute some queries using Gel's JavaScript client library. We'll install the client library and Gel's codegen CLI, and create a `seed.ts`.file.
133133
134134
```sh terminal icon="terminal"
135-
bun add edgedb
136-
bun add -D @edgedb/generate
135+
bun add gel
136+
bun add -D @gel/generate
137137
touch seed.ts
138138
```
139139
@@ -144,7 +144,7 @@ Paste the following code into `seed.ts`.
144144
The client auto-connects to the database. We insert a couple movies using the `.execute()` method. We will use EdgeQL's `for` expression to turn this bulk insert into a single optimized query.
145145
146146
```ts seed.ts icon="/icons/typescript.svg"
147-
import { createClient } from "edgedb";
147+
import { createClient } from "gel";
148148
149149
const client = createClient();
150150
@@ -184,10 +184,10 @@ Seeding complete.
184184
185185
---
186186
187-
EdgeDB implements a number of code generation tools for TypeScript. To query our newly seeded database in a typesafe way, we'll use `@edgedb/generate` to code-generate the EdgeQL query builder.
187+
Gel implements a number of code generation tools for TypeScript. To query our newly seeded database in a typesafe way, we'll use `@gel/generate` to code-generate the EdgeQL query builder.
188188
189189
```sh terminal icon="terminal"
190-
bunx @edgedb/generate edgeql-js
190+
bunx @gel/generate edgeql-js
191191
```
192192
193193
```txt
@@ -213,7 +213,7 @@ the query builder directory? The following line will be added:
213213
In `index.ts`, we can import the generated query builder from `./dbschema/edgeql-js` and write a simple select query.
214214
215215
```ts index.ts icon="/icons/typescript.svg"
216-
import { createClient } from "edgedb";
216+
import { createClient } from "gel";
217217
import e from "./dbschema/edgeql-js";
218218
219219
const client = createClient();
@@ -254,4 +254,4 @@ bun run index.ts
254254
255255
---
256256
257-
For complete documentation, refer to the [EdgeDB docs](https://www.edgedb.com/docs).
257+
For complete documentation, refer to the [Gel docs](https://www.geldata.com/docs).

docs/snippets/guides.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export const GuidesList = () => {
123123
title: "Ecosystem",
124124
icon: "puzzle",
125125
items: [
126-
{ title: "Use EdgeDB with Bun", href: "/guides/ecosystem/edgedb" },
126+
{ title: "Use Gel with Bun", href: "/guides/ecosystem/edgedb" },
127127
{ title: "Use Prisma ORM with Bun", href: "/guides/ecosystem/prisma" },
128128
{ title: "Use Prisma Postgres with Bun", href: "/guides/ecosystem/prisma-postgres" },
129129
{ title: "Create a Discord bot", href: "/guides/ecosystem/discordjs" },

0 commit comments

Comments
 (0)