30 lines
1022 B
JSON
30 lines
1022 B
JSON
{
|
|
"gitSyncId": "67d625955fe7897636dc61e1_9a6e5b5a-57d5-4a40-a651-2371365a217a",
|
|
"id": "foss.raw_SelectQuery",
|
|
"pluginId": "postgres-plugin",
|
|
"pluginType": "DB",
|
|
"unpublishedAction": {
|
|
"actionConfiguration": {
|
|
"body": "SELECT * FROM public.\"foss\"\nWHERE \"name\" ilike '%{{data_table.searchText || \"\"}}%'\nORDER BY \"{{data_table.sortOrder.column || 'id'}}\" {{data_table.sortOrder.order || 'ASC'}}\nLIMIT {{data_table.pageSize}}\nOFFSET {{(data_table.pageNo - 1) * data_table.pageSize}};",
|
|
"encodeParamsToggle": true,
|
|
"paginationType": "NONE",
|
|
"pluginSpecifiedTemplates": [
|
|
{
|
|
"value": false
|
|
}
|
|
],
|
|
"timeoutInMillisecond": 10000
|
|
},
|
|
"confirmBeforeExecute": false,
|
|
"datasource": {
|
|
"id": "Directus Database",
|
|
"isAutoGenerated": false,
|
|
"name": "Directus Database",
|
|
"pluginId": "postgres-plugin"
|
|
},
|
|
"executeOnLoad": true,
|
|
"name": "SelectQuery",
|
|
"pageId": "foss.raw",
|
|
"userSetOnLoad": true
|
|
}
|
|
} |