MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / parseDbVersion

Function parseDbVersion

console/src/version/api.ts:62–68  ·  view source on GitHub ↗
(versionStr: string)

Source from the content-addressed store, hash-verified

60 * Throws an error if the version string could not be parsed.
61 */
62export const parseDbVersion = (versionStr: string): DbVersion => {
63 const parsed = parseDbVersionInner(versionStr);
64 if (!parsed) {
65 throw new Error(`Failed to parse database version: ${versionStr}`);
66 }
67 return parsed;
68};

Callers 4

fetchEnvironmentHealthFunction · 0.90
api.test.tsFile · 0.90
utils.tsxFile · 0.90
mzVersionIsGteFunction · 0.90

Calls 1

parseDbVersionInnerFunction · 0.85

Tested by

no test coverage detected