Skip to main content

Type conversions

Below here is a table to visualize the type conversions that happens in the the Rell backend to its corresponding Gtv types when inserting into, and querying the types.

TypesInputOutputRemark
entityGtvIntegerGtvInteger
enumGtvIntegerGtvIntegerCan be GtvString as input to query
structGtvArrayGtvDictCan be GtvDict as input to query
decimalGtvStringGtvString
booleanGtvIntegerGtvInteger
rowidGtvIntegerGtvInteger
jsonGtvStringGtvString
nullableGtvNull or typeGtvNull or type
collectionGtvArrayGtvArrayBoth set and list
mapGtvDictGtvDictIf key is text
mapGtvArrayGtvArrayIf key is not text [[k1, v1], [k2, v2], ...]
tupleGtvDictGtvDictIf named "(x = 1, y = 2, z = 3)"
tupleGtvArrayGtvArrayIf not named "(1, 2, 3)"