-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Add Hyperdrive example with Nile database #18374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Oxyjun
merged 7 commits into
cloudflare:production
from
niledatabase:add_nile_hyperdrive_example
Nov 25, 2024
Merged
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
3499db9
Adding Hyperdrive example with Nile database
gwenshap 261206b
small style change
gwenshap 1921159
Update Nile's hyperdrive doc per Oxyjun suggestions
gwenshap 3db89ea
Update Nile's hyperdrive doc per Oxyjun suggestions
gwenshap 59ff8c2
Update Nile's hyperdrive doc per Oxyjun suggestions
gwenshap 5978e36
Update Nile's hyperdrive doc per Oxyjun suggestions
gwenshap 1ae8238
Update Nile's hyperdrive example per thomasgauvin feedback
gwenshap File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,48 @@ | ||||||||||||||
| --- | ||||||||||||||
| type: example | ||||||||||||||
| summary: Connect Hyperdrive to a Nile database instance. | ||||||||||||||
| pcx_content_type: example | ||||||||||||||
| title: Connect to Nile | ||||||||||||||
| sidebar: | ||||||||||||||
| order: 3 | ||||||||||||||
| description: Connect Hyperdrive to a Nile database instance. | ||||||||||||||
| --- | ||||||||||||||
|
|
||||||||||||||
| import { Render } from "~/components"; | ||||||||||||||
|
|
||||||||||||||
| This example shows you how to connect Hyperdrive to a [Nile](https://thenile.dev) PostgreSQL database instance. | ||||||||||||||
|
|
||||||||||||||
| Nile is PostgreSQL re-engineered for multi-tenant applications. Nile's virtual tenant databases provides you with isolation, | ||||||||||||||
| placement, insights and more for your tenant's data and embedding. You can learn more in [Nile documentation](https://www.thenile.dev/docs/getting-started/whatisnile). | ||||||||||||||
|
|
||||||||||||||
| ## 1. Allow Hyperdrive access | ||||||||||||||
|
|
||||||||||||||
| You can connect Cloudflare Hyperdrive to any Nile database in your workspace using its connection string - either with new set of | ||||||||||||||
| credentials or using existing set. | ||||||||||||||
gwenshap marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||||
|
|
||||||||||||||
| ### Nile Console | ||||||||||||||
gwenshap marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||||
|
|
||||||||||||||
| To get a connection string from Nile Console: | ||||||||||||||
|
|
||||||||||||||
| 1. Log in to [Nile Console](https://console.thenile.dev) and select a database | ||||||||||||||
| 2. On the left hand menu, click on "Settings" (the bottom-most icon) and then select "Connection" | ||||||||||||||
| 3. Click on the elephant, and you'll see a connection string show up. | ||||||||||||||
| 4. If you want a new pair of credentials for use with Cloudflare Hyperdrive (recommended!), click on "Generate credentials". | ||||||||||||||
| 5. Copy the connection string without the "psql" part | ||||||||||||||
|
||||||||||||||
| 3. Click on the elephant, and you'll see a connection string show up. | |
| 4. If you want a new pair of credentials for use with Cloudflare Hyperdrive (recommended!), click on "Generate credentials". | |
| 5. Copy the connection string without the "psql" part | |
| 3. Select the PostgreSQL logo to show the connection string. | |
| 4. Select "Generate credentials" to generate new credentials. | |
| 5. Copy the connection string (without the "psql" part). |
gwenshap marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
gwenshap marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.