Function: selectionSql()
selectionSql(
selection,layout,options):string
Defined in: autk-db/src/selection-sql.ts:226
The SQL condition (without WHERE) for the rows a selection picks: those with a place in the selection at any of at, or with a flow of the selection from its start to its end. A selection that picks nothing gives false.
Each column name in the layout is quoted as a DuckDB identifier, so reserved words such as do work and a name cannot inject SQL. Feature ids may be finite numbers or non-empty strings.
Parameters
selection
NamedSelection
layout
options
Returns
string
Throws
If a name in at or flow is not in the layout, a feature's layer has no link column there, a region is asked of a place without location or geometry columns (unless region writes it), or a region's ring is unclosed, non-finite, or self-intersecting.