Test connection to database

This commit is contained in:
2026-01-15 09:49:02 +00:00
parent 0f8d095955
commit ab003c148d
11 changed files with 465 additions and 1 deletions

View File

@@ -0,0 +1 @@
INSERT INTO mpe.isocountry ("countryname","continent") VALUES ('{{(Table1.newRow || {}).countryname}}','{{(Table1.newRow || {}).continent}}')

View File

@@ -0,0 +1,35 @@
{
"gitSyncId": "6968b6e8271e5e0befde3194_08fc7608-7641-46f3-a322-0265f2bbbc04",
"id": "Page1_Insert_mpe_isocountry1",
"pluginId": "postgres-plugin",
"pluginType": "DB",
"unpublishedAction": {
"actionConfiguration": {
"body": "INSERT INTO mpe.isocountry (\"countryname\",\"continent\") VALUES ('{{(Table1.newRow || {}).countryname}}','{{(Table1.newRow || {}).continent}}')",
"encodeParamsToggle": true,
"paginationType": "NONE",
"pluginSpecifiedTemplates": [
{
"value": false
}
],
"timeoutInMillisecond": 10000
},
"confirmBeforeExecute": false,
"datasource": {
"id": "xTuple_Sandbox",
"isAutoGenerated": false,
"name": "xTuple_Sandbox",
"pluginId": "postgres-plugin"
},
"dynamicBindingPathList": [
{
"key": "body"
}
],
"name": "Insert_mpe_isocountry1",
"pageId": "Page1",
"runBehaviour": "MANUAL",
"userSetOnLoad": false
}
}

View File

@@ -0,0 +1,12 @@
SELECT
*
FROM
mpe.isocountry
WHERE
"iso_id" ilike '%{{Table1.searchText}}%'
ORDER BY
"{{Table1.sortOrder.column || 'iso_id'}}" {{Table1.sortOrder.order !== "desc" ? "" : "DESC"}}
LIMIT
{{Table1.pageSize}}
OFFSET
{{Table1.pageOffset}}

View File

@@ -0,0 +1,35 @@
{
"gitSyncId": "6968b6e8271e5e0befde3194_6ab47e10-a6f8-4be9-9f46-2e01804dfaf8",
"id": "Page1_Select_mpe_isocountry1",
"pluginId": "postgres-plugin",
"pluginType": "DB",
"unpublishedAction": {
"actionConfiguration": {
"body": "SELECT\n *\nFROM\n mpe.isocountry\nWHERE\n \"iso_id\" ilike '%{{Table1.searchText}}%'\nORDER BY\n \"{{Table1.sortOrder.column || 'iso_id'}}\" {{Table1.sortOrder.order !== \"desc\" ? \"\" : \"DESC\"}}\nLIMIT\n {{Table1.pageSize}}\nOFFSET\n {{Table1.pageOffset}}",
"encodeParamsToggle": true,
"paginationType": "NONE",
"pluginSpecifiedTemplates": [
{
"value": false
}
],
"timeoutInMillisecond": 10000
},
"confirmBeforeExecute": false,
"datasource": {
"id": "xTuple_Sandbox",
"isAutoGenerated": false,
"name": "xTuple_Sandbox",
"pluginId": "postgres-plugin"
},
"dynamicBindingPathList": [
{
"key": "body"
}
],
"name": "Select_mpe_isocountry1",
"pageId": "Page1",
"runBehaviour": "AUTOMATIC",
"userSetOnLoad": false
}
}

View File

@@ -0,0 +1 @@
SELECT COUNT(*) from mpe.isocountry where iso_id ilike '%{{Table1.searchText}}%';

View File

@@ -0,0 +1,35 @@
{
"gitSyncId": "6968b6e8271e5e0befde3194_1daa0af7-bfec-48c0-8a6f-00b33b06722c",
"id": "Page1_Total_record_mpe_isocountry1",
"pluginId": "postgres-plugin",
"pluginType": "DB",
"unpublishedAction": {
"actionConfiguration": {
"body": "SELECT COUNT(*) from mpe.isocountry where iso_id ilike '%{{Table1.searchText}}%';",
"encodeParamsToggle": true,
"paginationType": "NONE",
"pluginSpecifiedTemplates": [
{
"value": false
}
],
"timeoutInMillisecond": 10000
},
"confirmBeforeExecute": false,
"datasource": {
"id": "xTuple_Sandbox",
"isAutoGenerated": false,
"name": "xTuple_Sandbox",
"pluginId": "postgres-plugin"
},
"dynamicBindingPathList": [
{
"key": "body"
}
],
"name": "Total_record_mpe_isocountry1",
"pageId": "Page1",
"runBehaviour": "AUTOMATIC",
"userSetOnLoad": false
}
}

View File

@@ -0,0 +1 @@
UPDATE mpe.isocountry SET "countryname"= '{{Table1.updatedRow.countryname}}', "continent"= '{{Table1.updatedRow.continent}}' WHERE "iso_id"= {{Table1.updatedRow.iso_id}};

View File

@@ -0,0 +1,35 @@
{
"gitSyncId": "6968b6e8271e5e0befde3194_966f24b4-0187-44b9-ae1b-91384ed62a26",
"id": "Page1_Update_mpe_isocountry1",
"pluginId": "postgres-plugin",
"pluginType": "DB",
"unpublishedAction": {
"actionConfiguration": {
"body": "UPDATE mpe.isocountry SET \"countryname\"= '{{Table1.updatedRow.countryname}}', \"continent\"= '{{Table1.updatedRow.continent}}' WHERE \"iso_id\"= {{Table1.updatedRow.iso_id}};",
"encodeParamsToggle": true,
"paginationType": "NONE",
"pluginSpecifiedTemplates": [
{
"value": false
}
],
"timeoutInMillisecond": 10000
},
"confirmBeforeExecute": false,
"datasource": {
"id": "xTuple_Sandbox",
"isAutoGenerated": false,
"name": "xTuple_Sandbox",
"pluginId": "postgres-plugin"
},
"dynamicBindingPathList": [
{
"key": "body"
}
],
"name": "Update_mpe_isocountry1",
"pageId": "Page1",
"runBehaviour": "MANUAL",
"userSetOnLoad": false
}
}