Skip to main content

MAX_DB_NAME

Constant MAX_DB_NAME 

Source
pub const MAX_DB_NAME: usize = 64;
Expand description

Longest database name a workspace accepts, in bytes.

Names are ASCII, so this is also the character count. The limit exists so a name plus the extension stays comfortably inside the shortest filename limit worth caring about (255 bytes on ext4/APFS/NTFS) with room for the sidecar suffixes (.lock, .jrnl, .snap.N) the storage layer appends.