Skip to main content

query

superduper.backends.ibis.query

Source code

parse_query​

parse_query(query,
documents: Sequence[Dict] = (),
db: Optional[ForwardRef('Datalayer')] = None)
ParameterDescription
queryThe query to parse.
documentsThe documents to query.
dbThe datalayer to use to execute the query.

Parse a string query into a query object.

IbisQuery​

IbisQuery(self,
identifier: str,
db: dataclasses.InitVar[typing.Optional[ForwardRef('Datalayer')]] = None,
uuid: str = None,
*,
parts: Sequence[Union[Tuple,
str]] = ()) -> None
ParameterDescription
identifierIdentifier of the leaf.
dbDatalayer instance.
uuidUUID of the leaf.
partsThe parts of the query.

A query that can be executed on an Ibis database.

RawSQL​

RawSQL(self,
query: str,
id_field: str = 'id') -> None
ParameterDescription
queryThe raw SQL query
id_fieldThe field to use as the primary id

Raw SQL query.