Skip to content

Interface: SelectionSqlOptions ​

Defined in: autk-db/src/selection-sql.ts:43

What selectionSql reads from the selection.

Properties ​

at? ​

optional at?: string[]

Defined in: autk-db/src/selection-sql.ts:45

Names (keys of the layout) where a row must be in the selection's places; with several, in any of them.


flow? ​

optional flow?: [from: string, to: string]

Defined in: autk-db/src/selection-sql.ts:47

Names of a flow's start and end, to include the selection's flows: ['pickup', 'dropoff'].


region? ​

optional region?: (ring, at, columns) => string

Defined in: autk-db/src/selection-sql.ts:53

Writes the condition for a region instead of regionPredicate. A page that asks about the same region many times can compute its rows once into a table and return trip_id IN (SELECT trip_id FROM that_table). columns holds the layout's names as given. The result is parenthesized.

Parameters ​

ring ​

Ring

at ​

string

columns ​

PlaceColumns

Returns ​

string

Released under the MIT License.