/// Create a new Postgres instance for all-in-one mode if a catalog DSN is specified
Create a new Postgres instance for all-in-one mode if a catalog DSN is specified
Create a new Postgres instance for all - in - one mode if a catalog DSN is specified
pub fn new_postgres(dsn: String, postgres_schema_name: String) -> Self {
        info!("Catalog: Postgres at `{}`", dsn);
        Self {
            catalog_type_: CatalogType::Postgres,
            dsn: Some(dsn),
            max_catalog_connections: PostgresConnectionOptions::DEFAULT_MAX_CONNS,
            postgres_schema_name,
            connect_timeout: PostgresConnectionOptions::DEFAULT_CONNECT_TIMETOUT,
            idle_timeout: PostgresConnectionOptions::DEFAULT_IDLE_TIMETOUT,
            hotswap_poll_interval: PostgresConnectionOptions::DEFAULT_HOTSWAP_POLL_INTERVAL,
        }
    }
pub fn new_postgres ( dsn : String , postgres_schema_name : String ) -> Self { info ! ( " " dsn ) ; Self { catalog_type_ : CatalogType :: Postgres , dsn : Some ( dsn ) , max_catalog_connections : PostgresConnectionOptions :: DEFAULT_MAX_CONNS , postgres_schema_name , connect_timeout : PostgresConnectionOptions :: DEFAULT_CONNECT_TIMETOUT , idle_timeout : PostgresConnectionOptions :: DEFAULT_IDLE_TIMETOUT , hotswap_poll_interval : PostgresConnectionOptions :: DEFAULT_HOTSWAP_POLL_INTERVAL , } }
Create a new Postgres instance for all-in-one mode if a catalog DSN is specified
Create a new Postgres instance for all - in - one mode if a catalog DSN is specified
dsn
String
postgres_schema_name
String