SQLite cheatsheet
Count rows in the table
# count rows in a table
datasources:
row_count:
type: datasource.sqlite
options:
provider: DATA_PROVIDER_DYNAMIC
entities:
- default/avatar
query: |
SELECT COUNT(*) AS row_count
FROM [default/avatar] title: Number of rows
description: Use SQLite query to count the number of rows in the Avatar dynamic data table
type: jig.default
header:
type: component.jig-header
options:
height: medium
children:
type: component.image
options:
source:
uri: https://images.unsplash.com/photo-1489875347897-49f64b51c1f8?auto=format&fit=crop&q=60&w=800&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MXx8c3FsJTIwcXVlcnl8ZW58MHx8MHx8fDA%3D
# count rows in a table
datasources:
row_count:
type: datasource.sqlite
options:
provider: DATA_PROVIDER_DYNAMIC
entities:
- default/avatar
query: |
SELECT COUNT(*) AS row_count
FROM [default/avatar]
children:
- type: component.entity
options:
children:
- type: component.entity-field
options:
label: Number of rows
value: [email protected]_count.row_countConverting dates

Joining data from tables and using subquery


Joining tables


JSON array length

Last updated
Was this helpful?