Skip to main content

xmtp_configuration/common/
db.rs

1//! Database configuration values
2
3// Changing these values is a breaking change, unless a migration path is specified
4pub const WASM_VFS_NAME: &str = "opfs-libxmtp";
5/// VFS Directory for OPFS
6pub const WASM_VFS_DIRECTORY: &str = ".opfs-libxmtp-metadata";
7/// Max Size the Database Pool is allowed to grow to
8pub const MAX_DB_POOL_SIZE: u32 = 25;
9/// max time the database will wait to acquire a lock for a table
10pub const BUSY_TIMEOUT: i32 = 5_000;
11/// Minimum amount of connections to keep open & idle to the database in the pool
12pub const MIN_DB_POOL_SIZE: u32 = 5;