spring_postgres/
config.rs

1use schemars::JsonSchema;
2use serde::Deserialize;
3use spring::config::Configurable;
4
5spring::submit_config_schema!("postgres", PgConfig);
6
7#[derive(Debug, Configurable, Clone, JsonSchema, Deserialize)]
8#[config_prefix = "postgres"]
9pub struct PgConfig {
10    /// The URI for connecting to the postgres. For example:
11    /// * postgresql: `postgres://root:12341234@localhost:5432/myapp_development`
12    ///
13    /// Please refer to [tokio_postgres::Config] for details.
14    pub connect: String,
15}