Merge branch 'master' of github.com:appsmithorg/appsmith

This commit is contained in:
Arpit Mohan 2020-10-19 22:56:32 +05:30
commit acb2e874dc
8 changed files with 9 additions and 8 deletions

View File

@ -5,4 +5,4 @@ VALUES
'{{ nameInput.text }}',
'{{ genderDropdown.selectedOptionValue }}',
'{{ nameInput.text }}'
);
); -- nameInput and genderDropdown are example widgets, replace them with your widget names. Read more at http://bit.ly/postgres-widget-docs

View File

@ -1 +1 @@
DELETE FROM users WHERE id = '{{ usersTable.selectedRow.id }}';
DELETE FROM users WHERE id = -1; -- Use widget data in a query by replacing static values with {{ widgetName.property }}. Read more at http://bit.ly/postgres-widget-docs

View File

@ -1 +1 @@
SELECT * FROM users where role = '{{ roleDropdown.selectedOptionValue }}' ORDER BY id LIMIT 10;
SELECT * FROM users where role = 'Admin' ORDER BY id LIMIT 10 -- Use widget data in a query using {{ widgetName.property }}. Read more at http://bit.ly/postgres-widget-docs

View File

@ -1,3 +1,3 @@
UPDATE users
SET status = 'APPROVED'
WHERE id = '{{ usersTable.selectedRow.id }}';
WHERE id = '{{ usersTable.selectedRow.id }}'; -- usersTable is an example table widget from where the id is being read. Replace it with your own Table widget or a static value. Read more at http://bit.ly/postgres-widget-docs

View File

@ -5,4 +5,4 @@ VALUES
'{{ nameInput.text }}',
'{{ genderDropdown.selectedOptionValue }}',
'{{ nameInput.text }}'
);
); -- nameInput and genderDropdown are example widgets, replace them with your widget names. Read more at http://bit.ly/postgres-widget-docs

View File

@ -1 +1 @@
DELETE FROM users WHERE id = '{{ usersTable.selectedRow.id }}';
DELETE FROM users WHERE id = -1; -- Use widget data in a query by replacing static values with {{ widgetName.property }}. Read more at http://bit.ly/postgres-widget-docs

View File

@ -1 +1 @@
SELECT * FROM users where role = '{{ roleDropdown.selectedOptionValue }}' ORDER BY id LIMIT 10;
SELECT * FROM users where role = 'Admin' ORDER BY id LIMIT 10; -- Use widget data in a query using {{ widgetName.property }}. Read more at http://bit.ly/postgres-widget-docs

View File

@ -1,3 +1,4 @@
UPDATE users
SET status = 'APPROVED'
WHERE id = '{{ usersTable.selectedRow.id }}';
WHERE id = '{{ usersTable.selectedRow.id }}'; -- usersTable is an example table widget from where the id is being read. Replace it with your own Table widget or a static value. Read more at http://bit.ly/postgres-widget-docs