Module
Column wrapper for type-safe filtering and sorting.Column
Wrapper for ColumnInfo that provides type-safe filtering and sorting. This class validates filter and sort operations based on the column’s data_type and sortable attributes, ensuring only valid operations are performed. Examplesafter
value: The threshold date (string or datetime).
ascending
Returns
LogRecordsSortClause: A configured sort clause.Raises
ValidationError: If the column is not sortable.before
value: The threshold date (string or datetime).
between
min_value: The minimum value (inclusive).max_value: The maximum value (inclusive).
contains
value: The substring to search for.case_sensitive: Whether the search should be case-sensitive. Default is True.
descending
Returns
LogRecordsSortClause: A configured sort clause.Raises
ValidationError: If the column is not sortable.equals
value: The value to match (string for text columns, boolean for boolean columns).case_sensitive: Whether text matching should be case-sensitive. Default is True. Ignored for boolean columns.
greater_than
value: The threshold value (exclusive).
greater_than_or_equal
value: The threshold value (inclusive).
is_false
is_true
less_than
value: The threshold value (exclusive).
less_than_or_equal
value: The threshold value (inclusive).
not_equals
value: The text value to exclude.case_sensitive: Whether the match should be case-sensitive. Default is True.
not_in
values: List of text values to exclude.case_sensitive: Whether the match should be case-sensitive. Default is True.
on_or_after
value: The threshold date (string or datetime).
on_or_before
value: The threshold date (string or datetime).
one_of
values: List of text values to match.case_sensitive: Whether the match should be case-sensitive. Default is True.
ColumnCollection
A dictionary-like collection of Column objects for easy access by column ID. This class provides convenient access to columns using dictionary syntax, while also supporting iteration and other collection operations. Inherits fromMapping[str, Column] to provide a read-only mapping interface.
Examples