Type conversions
Here's a table to visualize the type conversions in the Rell backend to its corresponding GTV types when inserting into and querying them.
Rell type | Operation input | Query input | Query output |
---|---|---|---|
entity | GtvInteger | GtvInteger | GtvInteger |
enum | GtvInteger | GtvInteger (can be GtvString) | GtvInteger |
struct | GtvArray | GtvArray (can be GtvDict) | GtvDict |
decimal | GtvString | GtvString | GtvString |
boolean | GtvInteger | GtvInteger | GtvInteger |
rowid | GtvInteger | GtvInteger | GtvInteger |
json | GtvString | GtvString | GtvString |
nullable | GtvNull or type | GtvNull or type | GtvNull or type |
collection | GtvArray | GtvArray | GtvArray |
text map | GtvDict | GtvDict | GtvDict |
non-text map (e.g., [[k1, v1], [k2, v2], ...] ) | GtvArray | GtvArray | GtvArray |
named tuple (e.g., (x = 1, y = 2, z = 3) ) | GtvDict | GtvDict | GtvDict |
unnamed tuple (e.g., (1, 2, 3) ) | GtvArray | GtvArray | GtvArray |