Skip to main content

mz_adapter_dyncfgs/
timestamp_oracle.rs

1// Copyright Materialize, Inc. and contributors. All rights reserved.
2//
3// Use of this software is governed by the Business Source License
4// included in the LICENSE file.
5//
6// As of the Change Date specified in that file, in accordance with
7// the Business Source License, use of this software will be governed
8// by the Apache License, Version 2.0.
9
10use std::time::Duration;
11
12/// Default value for `DynamicConfig::pg_connection_pool_max_size`.
13pub const DEFAULT_PG_TIMESTAMP_ORACLE_CONNPOOL_MAX_SIZE: usize = 50;
14
15/// Default value for `DynamicConfig::pg_connection_pool_max_wait`.
16pub const DEFAULT_PG_TIMESTAMP_ORACLE_CONNPOOL_MAX_WAIT: Duration = Duration::from_secs(60);
17
18/// Default value for `DynamicConfig::pg_connection_pool_ttl`.
19pub const DEFAULT_PG_TIMESTAMP_ORACLE_CONNPOOL_TTL: Duration = Duration::from_secs(300);
20
21/// Default value for `DynamicConfig::pg_connection_pool_ttl_stagger`.
22pub const DEFAULT_PG_TIMESTAMP_ORACLE_CONNPOOL_TTL_STAGGER: Duration = Duration::from_secs(6);
23
24/// Default value for `DynamicConfig::pg_connection_pool_connect_timeout`.
25pub const DEFAULT_PG_TIMESTAMP_ORACLE_CONNECT_TIMEOUT: Duration = Duration::from_secs(5);
26
27/// Default value for `DynamicConfig::pg_connection_pool_tcp_user_timeout`.
28pub const DEFAULT_PG_TIMESTAMP_ORACLE_TCP_USER_TIMEOUT: Duration = Duration::from_secs(30);
29
30/// Default value for `DynamicConfig::pg_connection_pool_keepalives_idle`.
31pub const DEFAULT_PG_TIMESTAMP_ORACLE_KEEPALIVES_IDLE: Duration = Duration::from_secs(10);
32
33/// Default value for `DynamicConfig::pg_connection_pool_keepalives_interval`.
34pub const DEFAULT_PG_TIMESTAMP_ORACLE_KEEPALIVES_INTERVAL: Duration = Duration::from_secs(5);
35
36/// Default value for `DynamicConfig::pg_connection_pool_keepalives_retries`.
37pub const DEFAULT_PG_TIMESTAMP_ORACLE_KEEPALIVES_RETRIES: u32 = 5;
38
39/// Default value for `DynamicConfig::pg_statement_timeout`.
40///
41/// A value of zero is a sentinel that means "do not set a statement timeout".
42pub const DEFAULT_PG_TIMESTAMP_ORACLE_STATEMENT_TIMEOUT: Duration = Duration::from_secs(0);