From a1573224e290509064f06fed9aabbdb9f6d7f066 Mon Sep 17 00:00:00 2001 From: Vlad Stepanov <8uk.8ak@gmail.com> Date: Mon, 8 May 2023 18:45:29 +0400 Subject: [PATCH] Update shuttle-shared-db.mdx Update docs, reflect the `rustls` implementation option in `shuttle-shared-db`. Re: https://github.com/shuttle-hq/shuttle-examples/pull/43 Re: https://github.com/shuttle-hq/shuttle/pull/870 cc @oddgrd --- resources/shuttle-shared-db.mdx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/resources/shuttle-shared-db.mdx b/resources/shuttle-shared-db.mdx index b6c0a80..a4dfb92 100644 --- a/resources/shuttle-shared-db.mdx +++ b/resources/shuttle-shared-db.mdx @@ -6,12 +6,14 @@ This plugin manages databases that are shared with other services on [shuttle](h will share a postgres server with other users, but it will not be accessible by other users. ## Usage -Add `shuttle-shared-db` to the dependencies for your service. Every type of shareable database is behind the following feature flag and attribute path - -| Engine | Feature flag | Attribute path | -|----------|--------------|-----------------------------| -| Postgres | postgres | shuttle_shared_db::Postgres | -| MongoDB | mongodb | shuttle_shared_db::MongoDb | +Add `shuttle-shared-db` to the dependencies for your service. Every type of shareable database +is behind the following feature flag and attribute path. `*-rustls` feature enables `rustls`-based implementation, +otherwise some flavour of `native-tls` is used. + +| Engine | Feature flags | Attribute path | +|----------|-------------------------------|-------------------------------| +| Postgres | `postgres`, `postgres-rustls` | `shuttle_shared_db::Postgres` | +| MongoDB | `mongodb` | `shuttle_shared_db::MongoDb` | ### Parameters | Parameter | Type | Default | Description |