-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: more docs * fix: version
- Loading branch information
Showing
7 changed files
with
88 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1 +1 @@ | ||
0.9.17 | ||
0.9.18 |
File renamed without changes.
This file contains 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,21 @@ | ||
Configure the `mode_type` on the `user` to set how Supavisor connection pools will behave. | ||
|
||
The `mode_type` can be one of: | ||
|
||
- `transaction` | ||
- `session` | ||
- `native` | ||
|
||
## Transaction Mode | ||
|
||
`transaction` mode assigns a connection to a client for the duration of a single transaction. | ||
|
||
## Session Mode | ||
|
||
`session` mode assigns a connection to a client for the duration of the client connection. | ||
|
||
## Native Mode | ||
|
||
`native` mode proxies a client to the database as if it was directly connected. | ||
|
||
This mode is typically needed to run migrations. |
This file contains 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,19 @@ | ||
Documentation is managed with [mkdocs](https://www.mkdocs.org/). | ||
|
||
## Adding documentation | ||
|
||
Edit the documentation in: | ||
|
||
`/docs` | ||
|
||
Edit the documentation nav in: | ||
|
||
`/mkdocs.yaml` | ||
|
||
Build and serve the documentation locally with: | ||
|
||
`mkdocs serve` | ||
|
||
Production documentation is built on merge into `main` with the Github Action: | ||
|
||
`/.github/workflows/docs.yml` |
This file contains 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
This file contains 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,17 @@ | ||
Connecting to a Postgres database with Prisma is easy. | ||
|
||
## PgBouncer Compatability | ||
|
||
Supavisor pool modes behave the same way as PgBouncer. You should be able to connect to Supavisor with the exact same connection string as you use for PgBouncer. | ||
|
||
## Named Prepared Statements | ||
|
||
Prisma will use named prepared statements to query Postgres by default. | ||
|
||
To turn off named prepared statements use `pgbouncer=true` in your connection string with Prisma. | ||
|
||
The `pgbouncer=true` connection string parameter is compatable with Supavisor. | ||
|
||
## Prisma Connection Management | ||
|
||
Make sure to review the [Prisma connection management guide](https://www.prisma.io/docs/guides/performance-and-optimization/connection-management). |
This file contains 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