graflo.architecture.contract¶
Declarative contracts: manifest, bindings, ingestion models, resources, transforms.
Modules:
| Name | Description |
|---|---|
bindings |
Resource connectors and named binding collections. |
ingestion |
Declarative ingestion contract: resources, transforms, steps, and ingestion model. |
manifest |
Graph manifest model for complete ingestion contracts. |
provenance |
Manifest-level metadata, and the provenance stamping that writes part of it. |
Attributes¶
Bindings = BindingsRegistry
module-attribute
¶
__all__ = ['APIConnector', 'ApiResponseStructure', 'Bindings', 'BoundSourceKind', 'ColumnTimeFilter', 'FileConnector', 'GraphManifest', 'IngestionModel', 'KafkaConnector', 'PaginationConfig', 'PaginationRequestConfig', 'ProtoTransform', 'Resource', 'ResourceConfig', 'ResourceConnector', 'ResourceRuntime', 'SparqlConnector', 'TableConnector', 'Transform', 'build_resource_runtime']
module-attribute
¶
Classes¶
APIConnector
¶
Bases: ResourceConnector
Connector for REST API endpoints.
Declares the non-secret access pattern (path, method, pagination). Runtime
base_url and credentials are supplied via connector_connection ->
conn_proxy -> :class:~graflo.connections.provider.ApiGeneralizedConnConfig.
Attributes:
| Name | Type | Description |
|---|---|---|
path |
str
|
Relative endpoint path (e.g. |
method |
str
|
HTTP method (default |
params |
dict[str, Any]
|
Static query parameters. |
pagination |
PaginationConfig | None
|
Pagination strategy and response path configuration. |
row_annotations |
dict[str, Any]
|
Constant fields merged into every fetched document (doc wins). |
headers |
dict[str, str]
|
Non-secret HTTP headers. |
timeout |
float | None
|
Request timeout in seconds. |
retries |
int
|
Number of retry attempts. |
retry_backoff_factor |
float
|
Backoff factor for retries. |
retry_status_forcelist |
list[int]
|
HTTP status codes to retry on. A |
verify |
bool
|
Verify SSL certificates. |
Source code in graflo/architecture/contract/bindings/connectors.py
712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 | |
Attributes¶
headers = Field(default_factory=dict)
class-attribute
instance-attribute
¶
method = 'GET'
class-attribute
instance-attribute
¶
pagination = None
class-attribute
instance-attribute
¶
params = Field(default_factory=dict)
class-attribute
instance-attribute
¶
path = Field(..., description='Relative API endpoint path')
class-attribute
instance-attribute
¶
retries = 0
class-attribute
instance-attribute
¶
retry_backoff_factor = 0.1
class-attribute
instance-attribute
¶
retry_status_forcelist = Field(default_factory=lambda: [429, 500, 502, 503, 504])
class-attribute
instance-attribute
¶
timeout = None
class-attribute
instance-attribute
¶
verify = True
class-attribute
instance-attribute
¶
Methods:¶
bound_source_kind()
¶
build_api_config(*, base_url, auth=None, default_headers=None, page_size_override=None)
¶
Merge contract fields with runtime connection config into APIConfig.
Source code in graflo/architecture/contract/bindings/connectors.py
matches(resource_identifier)
¶
Match resource name, connector name, or path tail.
Source code in graflo/architecture/contract/bindings/connectors.py
ApiResponseStructure
¶
Bases: ConfigBaseModel
Maps JSON response envelope fields to extraction and pagination signals.
Source code in graflo/architecture/contract/bindings/connectors.py
Attributes¶
auto_detect = Field(default=False, description='When true, infer unset response paths from the first response body.')
class-attribute
instance-attribute
¶
batch_metadata_paths = Field(default_factory=dict, description='Map row annotation keys to response dot paths (e.g. ``_batch_id: result_id``).')
class-attribute
instance-attribute
¶
cursor_path = Field(default=None, description='Dot path to the next opaque cursor token.')
class-attribute
instance-attribute
¶
has_more_path = Field(default=None, description='Dot path to a boolean more-pages flag (e.g. ``has_more``).')
class-attribute
instance-attribute
¶
next_offset_path = Field(default=None, description='Dot path to server-provided next offset for the following request (e.g. ``next_offset``).')
class-attribute
instance-attribute
¶
offset_path = Field(default=None, description='Dot path to echoed page start index (e.g. ``offset``).')
class-attribute
instance-attribute
¶
records_path = Field(default=None, description='Dot path to the record list (e.g. ``results``).')
class-attribute
instance-attribute
¶
total_count_path = Field(default=None, description='Dot path to total item count across all pages (e.g. ``count``).')
class-attribute
instance-attribute
¶
BoundSourceKind
¶
Bases: BaseEnum
Physical source modality for a bound connector (how rows are retrieved).
This describes the connector-backed access pattern, not the abstract ingestion resource. File format (CSV, JSON, etc.) is chosen by the loader from file extensions.
Attributes:
| Name | Type | Description |
|---|---|---|
FILE |
File-based connector (directory + pattern or paths). |
|
SQL_TABLE |
SQL table / database-backed connector. |
|
SPARQL |
SPARQL / RDF connector (endpoint or local RDF via rdflib). |
|
API |
REST API connector (path + pagination on a runtime base URL). |
|
KAFKA |
Kafka topic consumer (topics + group_id on a runtime bootstrap). |
Source code in graflo/architecture/contract/bindings/connectors.py
ColumnTimeFilter
¶
Bases: ConfigBaseModel
Predicate on a single date/time column (SQL-friendly via :class:FilterExpression).
Source code in graflo/architecture/contract/bindings/column_time_filter.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 | |
Attributes¶
column = Field(..., description='Column name for the time predicate.')
class-attribute
instance-attribute
¶
end = Field(default=None, description='Upper bound (ISO date or datetime). Interpreted with end_inclusive.')
class-attribute
instance-attribute
¶
end_inclusive = Field(default=False, description='If False (default), upper bound uses < when end is set.')
class-attribute
instance-attribute
¶
interval = Field(default=None, description='Pandas timedelta string (e.g. "7D", "2H"); requires start; defines [start, start + interval). Mutually exclusive with end.')
class-attribute
instance-attribute
¶
not_equals = Field(default=None, description='If set, render column != value. Mutually exclusive with start/end/interval.')
class-attribute
instance-attribute
¶
start = Field(default=None, description='Lower bound (ISO date or datetime). Interpreted with start_inclusive.')
class-attribute
instance-attribute
¶
start_inclusive = Field(default=True, description='If True (default), lower bound uses >= when start is set.')
class-attribute
instance-attribute
¶
Methods:¶
as_filter_expression()
¶
Return a single composite AND of leaves, or None if misconfigured.
Source code in graflo/architecture/contract/bindings/column_time_filter.py
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 | |
FileConnector
¶
Bases: ResourceConnector
Connector for matching files.
Attributes:
| Name | Type | Description |
|---|---|---|
regex |
str | None
|
Regular expression pattern for matching filenames |
sub_path |
Path
|
Path to search for matching files (default: "./") |
time_filter |
ColumnTimeFilter | None
|
Refused when set. A file is read whole, so a window
declared here would not be applied; filter the rows in a pipeline
step, or bind a :class: |
Source code in graflo/architecture/contract/bindings/connectors.py
Attributes¶
regex = None
class-attribute
instance-attribute
¶
sub_path = Field(default_factory=lambda: pathlib.Path('./'))
class-attribute
instance-attribute
¶
time_filter = None
class-attribute
instance-attribute
¶
Methods:¶
bound_source_kind()
¶
matches(resource_identifier)
¶
Check if connector matches a filename.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resource_identifier
|
str
|
Filename to match |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if connector matches |
Source code in graflo/architecture/contract/bindings/connectors.py
GraphManifest
¶
Bases: ConfigBaseModel
Canonical config contract for graph schema, ingestion, and bindings.
Source code in graflo/architecture/contract/manifest.py
Attributes¶
bindings = PydanticField(default=None, description='Bindings mapping resources to concrete data sources.')
class-attribute
instance-attribute
¶
graph_schema = PydanticField(default=None, description='Logical graph schema contract.', validation_alias=AliasChoices('schema', 'graph_schema'), serialization_alias='schema')
class-attribute
instance-attribute
¶
ingestion_model = PydanticField(default=None, description='Ingestion resources and transforms.')
class-attribute
instance-attribute
¶
metadata = PydanticField(default=None, description="Manifest-level identity: name, description and provenance. Excluded from this manifest's own content hash — a content address that covered its name or its lineage would not be path-independent, and two routes to the same world model could never be recognised as equal.")
class-attribute
instance-attribute
¶
model_config = ConfigDict(populate_by_name=True)
class-attribute
instance-attribute
¶
Methods:¶
finish_init(*, strict_references=False, dynamic_edge_feedback=False)
¶
Initialize model internals and cross-block runtime links.
Source code in graflo/architecture/contract/manifest.py
from_config(data)
classmethod
¶
require_bindings()
¶
require_ingestion_model()
¶
KafkaConnector
¶
Bases: ResourceConnector
Connector for Kafka topic consumption.
Declares the non-secret access pattern (topics, consumer group, decode
options). Runtime bootstrap servers and credentials are supplied via
connector_connection -> conn_proxy ->
:class:~graflo.connections.provider.KafkaGeneralizedConnConfig.
Attributes:
| Name | Type | Description |
|---|---|---|
topics |
list[str]
|
Topic names to subscribe to. |
group_id |
str
|
Kafka consumer group id. |
auto_offset_reset |
Literal['earliest', 'latest']
|
Where to start when no committed offset exists. |
value_encoding |
Literal['json']
|
Payload decode mode ( |
include_headers |
bool
|
When True, attach decoded headers under |
idle_ms |
int
|
Stop after this many milliseconds with no messages. |
max_wait_ms |
int | None
|
Hard wall-clock cap for a single |
poll_timeout_ms |
int
|
Per-poll timeout passed to the Kafka client. |
row_annotations |
dict[str, Any]
|
Constant fields merged into every decoded document (doc wins). |
Source code in graflo/architecture/contract/bindings/connectors.py
803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 | |
Attributes¶
auto_offset_reset = 'earliest'
class-attribute
instance-attribute
¶
group_id = Field(..., description='Consumer group id')
class-attribute
instance-attribute
¶
idle_ms = Field(default=2000, ge=0, description='Stop after this many ms with no messages (0 disables idle stop).')
class-attribute
instance-attribute
¶
include_headers = False
class-attribute
instance-attribute
¶
max_wait_ms = Field(default=None, ge=0, description='Optional wall-clock cap for one consume run.')
class-attribute
instance-attribute
¶
poll_timeout_ms = Field(default=500, ge=1, description='Timeout for each consumer poll call.')
class-attribute
instance-attribute
¶
topics = Field(..., min_length=1, description='Kafka topics to consume')
class-attribute
instance-attribute
¶
value_encoding = 'json'
class-attribute
instance-attribute
¶
Methods:¶
bound_source_kind()
¶
build_kafka_config(*, conn)
¶
Merge contract fields with runtime connection config into KafkaConfig.
Source code in graflo/architecture/contract/bindings/connectors.py
matches(resource_identifier)
¶
Match resource name, connector name, or a subscribed topic.
Source code in graflo/architecture/contract/bindings/connectors.py
PaginationConfig
¶
Bases: ConfigBaseModel
Configuration for API pagination (contract-level, secret-free).
Combines request construction (request) with response envelope parsing
(response).
Source code in graflo/architecture/contract/bindings/connectors.py
PaginationRequestConfig
¶
Bases: ConfigBaseModel
Configuration for building paginated HTTP requests.
Source code in graflo/architecture/contract/bindings/connectors.py
Attributes¶
carry_params = Field(default_factory=dict, description="Query param name -> response dot path. After each page, values are read and sent on later requests (e.g. ``results_id: '0.results_id'``). When empty, known session-token fields are auto-detected from the first response.")
class-attribute
instance-attribute
¶
cursor_param = 'cursor'
class-attribute
instance-attribute
¶
initial_cursor = None
class-attribute
instance-attribute
¶
initial_offset = 0
class-attribute
instance-attribute
¶
initial_page = 1
class-attribute
instance-attribute
¶
limit_param = Field(default='limit', description='Query parameter name for page size (offset strategy only). The value sent is ``page_size``, not a total item cap. When ``None``, no page-size query parameter is sent.')
class-attribute
instance-attribute
¶
offset_param = 'offset'
class-attribute
instance-attribute
¶
page_param = 'page'
class-attribute
instance-attribute
¶
page_size = Field(default=100, description='Records requested per HTTP page. Sent as the value of ``limit_param`` (offset) or ``per_page_param`` (page) when those param names are set.')
class-attribute
instance-attribute
¶
per_page_param = Field(default='per_page', description='Query parameter name for page size (page strategy only). The value sent is ``page_size``, not a total item cap.')
class-attribute
instance-attribute
¶
strategy = 'offset'
class-attribute
instance-attribute
¶
ResourceConnector
¶
Bases: ConfigBaseModel, ABC
Abstract base class for resource connectors (files or tables).
Provides common API for connector matching and resource identification. All concrete connector types inherit from this class.
Connectors only describe source-side matching/query behavior. Resource-to-
connector linkage is handled by Bindings.
Source code in graflo/architecture/contract/bindings/connectors.py
Attributes¶
hash = Field(default='', exclude=True, description='Deterministic internal connector id derived from defining fields.')
class-attribute
instance-attribute
¶
name = Field(default=None, description='Optional connector name used by top-level resource_connector mapping.')
class-attribute
instance-attribute
¶
resource_name = Field(default=None, description='Optional direct resource binding declared on the connector itself.')
class-attribute
instance-attribute
¶
row_annotations = Field(default_factory=dict, description='Constant fields merged into every fetched row as defaults (response fields take priority). Implemented for :class:`APIConnector` and :class:`KafkaConnector`; other connector types reject non-empty values.')
class-attribute
instance-attribute
¶
Methods:¶
bound_source_kind()
abstractmethod
¶
matches(resource_identifier)
abstractmethod
¶
Check if connector matches a resource identifier.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resource_identifier
|
str
|
Identifier to match (filename or table name) |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if connector matches |
Source code in graflo/architecture/contract/bindings/connectors.py
SparqlConnector
¶
Bases: ResourceConnector
Connector for matching SPARQL / RDF data sources.
Each SparqlConnector targets instances of a single rdf:Class.
It can be backed either by a remote SPARQL endpoint (Fuseki, Blazegraph, ...)
or by a local RDF file parsed with rdflib.
Attributes:
| Name | Type | Description |
|---|---|---|
rdf_class |
str
|
Full URI of the |
endpoint_url |
str | None
|
SPARQL query endpoint URL. When set, instances are
fetched via HTTP. When |
graph_uri |
str | None
|
Named-graph URI to restrict the query to (optional). |
sparql_query |
str | None
|
Custom SPARQL |
rdf_file |
Path | None
|
Path to a local RDF file ( |
same_as |
Literal['collapse', 'keep']
|
|
Source code in graflo/architecture/contract/bindings/connectors.py
500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 | |
Attributes¶
endpoint_url = Field(default=None, description='SPARQL query endpoint URL')
class-attribute
instance-attribute
¶
graph_uri = Field(default=None, description='Named graph URI (optional)')
class-attribute
instance-attribute
¶
rdf_class = Field(..., description='URI of the rdf:Class to fetch instances of')
class-attribute
instance-attribute
¶
rdf_file = Field(default=None, description='Path to a local RDF file')
class-attribute
instance-attribute
¶
same_as = Field(default='collapse', description='How owl:sameAs statements between IRIs are read.')
class-attribute
instance-attribute
¶
sparql_query = Field(default=None, description='Custom SPARQL query override')
class-attribute
instance-attribute
¶
typed_objects = Field(default_factory=list, description='Properties (local names) whose objects are also read by class, as ``<property>@<Class>``: for a property with several ranges.')
class-attribute
instance-attribute
¶
Methods:¶
bound_source_kind()
¶
build_select_query()
¶
Build a SPARQL SELECT query for instances of rdf_class.
If sparql_query is set it is returned as-is. Otherwise a simple per-class query is generated::
SELECT ?s ?p ?o WHERE {
?s a <rdf_class> .
?s ?p ?o .
}
Returns:
| Type | Description |
|---|---|
str
|
SPARQL query string |
Source code in graflo/architecture/contract/bindings/connectors.py
matches(resource_identifier)
¶
Match by the local name (fragment) of the rdf:Class URI.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resource_identifier
|
str
|
Identifier to match against |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True when resource_identifier equals the class local name |
Source code in graflo/architecture/contract/bindings/connectors.py
TableConnector
¶
Bases: ResourceConnector
Connector for matching database tables.
Supports simple single-table queries as well as multi-table JOINs and
pushdown filters via FilterExpression.
Attributes:
| Name | Type | Description |
|---|---|---|
table_name |
str
|
Exact table name or regex pattern |
schema_name |
str | None
|
Schema name (optional, defaults to public) |
database |
str | None
|
Database name (optional) |
time_filter |
ColumnTimeFilter | None
|
Optional structured filter on a date/time column, rendered
via :class: |
filters |
list[Any]
|
General-purpose pushdown filters rendered as SQL WHERE fragments. |
joins |
list[JoinClause]
|
Multi-table JOIN specifications (auto-generated or explicit). |
base_alias |
str
|
SQL alias for the base table when |
select_columns |
list[str] | None
|
Explicit SELECT column list. None means |
Source code in graflo/architecture/contract/bindings/connectors.py
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 | |
Attributes¶
base_alias = Field(default='base', description='SQL alias for the base table row when joins are present.')
class-attribute
instance-attribute
¶
database = None
class-attribute
instance-attribute
¶
date_field
property
¶
Column used for time filtering, if any (compat alias for time_filter.column).
filters = Field(default_factory=list, description='Pushdown FilterExpression filters (rendered to SQL WHERE).')
class-attribute
instance-attribute
¶
joins = Field(default_factory=list, description='JOIN clauses for multi-table queries.')
class-attribute
instance-attribute
¶
schema_name = Field(default=None, validation_alias=AliasChoices('schema_name', 'schema'))
class-attribute
instance-attribute
¶
select_columns = Field(default=None, description='Explicit SELECT columns. None = SELECT * (plus join aliases).')
class-attribute
instance-attribute
¶
table_name = Field(default='', validation_alias=AliasChoices('table_name', 'table'))
class-attribute
instance-attribute
¶
time_filter = None
class-attribute
instance-attribute
¶
view = Field(default=None, description='SelectSpec or dict for declarative view (alternative to table+joins+filters).')
class-attribute
instance-attribute
¶
Methods:¶
bound_source_kind()
¶
build_query(effective_schema=None, *, extra_filters=())
¶
Build a complete SQL SELECT query.
When view is set, delegates to view.build_sql(). Otherwise
incorporates the base table, any JoinClauses, explicit select_columns,
time_filter, and FilterExpression filters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
effective_schema
|
str | None
|
Schema to use if |
None
|
extra_filters
|
Sequence[FilterExpression]
|
Conditions for this run only, such as a date range supplied at ingestion time. They are ANDed with the declared ones and qualified like them. |
()
|
Returns:
| Type | Description |
|---|---|
str
|
Complete SQL query string. |
Source code in graflo/architecture/contract/bindings/connectors.py
372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 | |
build_where_clause(base_alias=None, extra_filters=())
¶
Build SQL WHERE clause from time filter and general filters.
Returns:
| Type | Description |
|---|---|
str
|
WHERE clause string (without the WHERE keyword) or empty string if no filters |
Source code in graflo/architecture/contract/bindings/connectors.py
matches(resource_identifier)
¶
Check if connector matches a table name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resource_identifier
|
str
|
Table name to match (format: schema.table or just table) |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if connector matches |
Source code in graflo/architecture/contract/bindings/connectors.py
where_conditions(base_alias=None, extra_filters=())
¶
The connector's SQL conditions, each safe as one operand of AND.
In order: the time filter, the declared filters, then
extra_filters (conditions supplied for one run). With base_alias,
unqualified columns are qualified with it.