GitHub

Fragment

API reference for Fragment.

A piece of SQL: its segments. Statements are fragments too, so any of them can be placed inside another statement.

Attributes

AttributeTypeDescription
segmentstuple[Segment, ...] = tuple(segments)

Functions

__init__

__init__(segments) -> None
ParameterTypeDescription
segmentsSequence[Segment]
def __init__(self, segments: Sequence[Segment]) -> None:
    self.segments = tuple(segments)