Skip to main content

parse_version

Function parse_version 

Source
pub fn parse_version(version: &str) -> Option<(u64, u64, u64)>
Expand description

Parses a DuckDB version string into (major, minor, patch).

Accepts "v1.5.4" and "1.5.4". Returns None for anything carrying a pre-release or build suffix ("v1.6.0-dev1234"), because the layout of a development build is not knowable from the version string alone.