Source
- class rolumns.Source(constant: Optional[Any] = None, cursor: Optional[Cursor] = None, path: Optional[str] = None, translator: Optional[Callable[[TranslationState], Any]] = None)[source]
Describes how to read a value from an object.
pathdescribes the path to the value. For example, given this object:{ "name": "Robert Pringles", "address": { "planet": "Pluto" } }
The path
"name"returns Robert PringlesThe path
"address.planet"returns Pluto
And given this list of primitives:
[ 2022, 2023, 2024 ]
The path
Noneiterates over the values
constantdescribes any static constant to bind to.cursordescribes any cursor to bind to.