pub fn split_platform(
platform: &str,
) -> Result<(&str, Option<EngineVersion>), EngineVersionError>Expand description
A platform name, read into the engine and the version it is for.
postgres@17 is the engine postgres at version 17; postgres is the
engine with no version named. The name is split on its last @, so the
engine’s own name is never cut short.
Parameters:
platform: the name as a design or a--targetwrites it.
§Errors
EngineVersionError when the version is not one, and
EngineVersionError::Colon for a colon anywhere in the name, with the
spelling that is accepted: postgres:17 reads as postgres@17.