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
Copy file name to clipboardExpand all lines: src/content/docs/hyperdrive/get-started.mdx
+28-3Lines changed: 28 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,31 @@ Learn more about the [databases that Hyperdrive supports](/hyperdrive/reference/
27
27
28
28
:::
29
29
30
+
## Quick start
31
+
32
+
If you want to skip the steps and get started quickly, click on the button below.
33
+
34
+
<TabssyncKey="sqlType">
35
+
<TabItemlabel="PostgreSQL">
36
+
37
+
**PostgreSQL deployment**
38
+
39
+
[](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/hyperdrive-get-started/hyperdrive/hyperdrive-get-started-postgres)
40
+
41
+
</TabItem>
42
+
<TabItemlabel="MySQL">
43
+
44
+
**MySQL deployment**
45
+
46
+
[](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/hyperdrive-get-started/hyperdrive/hyperdrive-get-started-mysql)
47
+
48
+
</TabItem>
49
+
</Tabs>
50
+
51
+
This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. Use this option if you are familiar with Cloudflare Workers, and wish to skip the step-by-step guidance.
52
+
53
+
You may wish to manually follow the steps if you are new to Cloudflare Workers.
54
+
30
55
## Prerequisites
31
56
32
57
Before you begin, ensure you have completed the following:
@@ -104,7 +129,7 @@ To create your first Hyperdrive, you will need:
104
129
105
130
Hyperdrive accepts the combination of these parameters in the common connection string format used by database drivers:
106
131
107
-
<Tabs>
132
+
<TabssyncKey="sqlType">
108
133
<TabItemlabel="PostgreSQL">
109
134
```txt
110
135
@@ -179,7 +204,7 @@ Once you have created a Hyperdrive configuration and bound it to your Worker, yo
179
204
180
205
### Install a database driver
181
206
182
-
<Tabs>
207
+
<TabssyncKey="sqlType">
183
208
<TabItemlabel="PostgreSQL">
184
209
185
210
To connect to your database, you will need a database driver which allows you to authenticate and query your database. For this tutorial, you will use [Postgres.js](https://github.com/porsager/postgres), one of the most widely used PostgreSQL drivers.
@@ -206,7 +231,7 @@ With the driver installed, you can now create a Worker script that queries your
206
231
207
232
### Write a Worker
208
233
209
-
<Tabs>
234
+
<TabssyncKey="sqlType">
210
235
<TabItemlabel="PostgreSQL">
211
236
After you have set up your database, you will run a SQL query from within your Worker.
0 commit comments