Skip to content

parse_uuid

relationalai.semantics.std.common
parse_uuid(s: StringValue) -> Expression

Parse a UUID from its string representation.

  • s

    (StringValue) - The string representation of the UUID.
  • Expression - An Expression representing the parsed UUID. Returns Hash.

Parse UUID from string:

>>> select(common.parse_uuid("550e8400-e29b-41d4-a716-446655440000"))
>>> select(common.parse_uuid(Request.session_id_str))