diff --git a/app/server/appsmith-plugins/mssqlPlugin/src/main/resources/templates/CREATE.sql b/app/server/appsmith-plugins/mssqlPlugin/src/main/resources/templates/CREATE.sql index cfbb93837767..8588138670d3 100644 --- a/app/server/appsmith-plugins/mssqlPlugin/src/main/resources/templates/CREATE.sql +++ b/app/server/appsmith-plugins/mssqlPlugin/src/main/resources/templates/CREATE.sql @@ -1,8 +1,8 @@ INSERT INTO users - (name, gender, email) + (name, gender, email) VALUES - ( - {{ nameInput.text }}, - {{ genderDropdown.selectedOptionValue }}, - {{ emailInput.text }} - ); + ( + {{ nameInput.text }}, + {{ genderDropdown.selectedOptionValue }}, + {{ emailInput.text }} + ); diff --git a/app/server/appsmith-plugins/mssqlPlugin/src/main/resources/templates/SELECT.sql b/app/server/appsmith-plugins/mssqlPlugin/src/main/resources/templates/SELECT.sql index f4d3905f05d3..57ce558bd267 100644 --- a/app/server/appsmith-plugins/mssqlPlugin/src/main/resources/templates/SELECT.sql +++ b/app/server/appsmith-plugins/mssqlPlugin/src/main/resources/templates/SELECT.sql @@ -1,3 +1,3 @@ SELECT TOP 10 * FROM <>; --- Please enter a valid table name and hit RUN \ No newline at end of file +-- Please enter a valid table name and hit RUN diff --git a/app/server/appsmith-plugins/mssqlPlugin/src/main/resources/templates/UPDATE.sql b/app/server/appsmith-plugins/mssqlPlugin/src/main/resources/templates/UPDATE.sql index de4915e6fd1b..5ecd96ba4dcf 100644 --- a/app/server/appsmith-plugins/mssqlPlugin/src/main/resources/templates/UPDATE.sql +++ b/app/server/appsmith-plugins/mssqlPlugin/src/main/resources/templates/UPDATE.sql @@ -1,3 +1,3 @@ UPDATE users - SET status = 'APPROVED' - WHERE id = {{ usersTable.selectedRow.id }}; + SET status = 'APPROVED' + WHERE id = {{ usersTable.selectedRow.id }}; diff --git a/app/server/appsmith-plugins/mysqlPlugin/src/main/resources/templates/CREATE.sql b/app/server/appsmith-plugins/mysqlPlugin/src/main/resources/templates/CREATE.sql index b5253c2bf8b2..8588138670d3 100644 --- a/app/server/appsmith-plugins/mysqlPlugin/src/main/resources/templates/CREATE.sql +++ b/app/server/appsmith-plugins/mysqlPlugin/src/main/resources/templates/CREATE.sql @@ -1,8 +1,8 @@ INSERT INTO users - (name, gender, email) + (name, gender, email) VALUES - ( - {{ nameInput.text }}, - {{ genderDropdown.selectedOptionValue }}, - {{ emailInput.text }} - ); \ No newline at end of file + ( + {{ nameInput.text }}, + {{ genderDropdown.selectedOptionValue }}, + {{ emailInput.text }} + ); diff --git a/app/server/appsmith-plugins/mysqlPlugin/src/main/resources/templates/DELETE.sql b/app/server/appsmith-plugins/mysqlPlugin/src/main/resources/templates/DELETE.sql index e7014662d50a..459aa04c543d 100644 --- a/app/server/appsmith-plugins/mysqlPlugin/src/main/resources/templates/DELETE.sql +++ b/app/server/appsmith-plugins/mysqlPlugin/src/main/resources/templates/DELETE.sql @@ -1 +1 @@ -DELETE FROM users WHERE id = -1; \ No newline at end of file +DELETE FROM users WHERE id = -1; diff --git a/app/server/appsmith-plugins/mysqlPlugin/src/main/resources/templates/UPDATE.sql b/app/server/appsmith-plugins/mysqlPlugin/src/main/resources/templates/UPDATE.sql index facf9fc3f9d6..5ecd96ba4dcf 100644 --- a/app/server/appsmith-plugins/mysqlPlugin/src/main/resources/templates/UPDATE.sql +++ b/app/server/appsmith-plugins/mysqlPlugin/src/main/resources/templates/UPDATE.sql @@ -1,3 +1,3 @@ UPDATE users - SET status = 'APPROVED' - WHERE id = {{ usersTable.selectedRow.id }}; \ No newline at end of file + SET status = 'APPROVED' + WHERE id = {{ usersTable.selectedRow.id }}; diff --git a/app/server/appsmith-plugins/oraclePlugin/src/main/resources/templates/DELETE.sql b/app/server/appsmith-plugins/oraclePlugin/src/main/resources/templates/DELETE.sql index c5000f4ee8ea..a763c222abbd 100755 --- a/app/server/appsmith-plugins/oraclePlugin/src/main/resources/templates/DELETE.sql +++ b/app/server/appsmith-plugins/oraclePlugin/src/main/resources/templates/DELETE.sql @@ -1 +1 @@ -DELETE FROM users WHERE id = {{idInput.text}} \ No newline at end of file +DELETE FROM users WHERE id = {{idInput.text}} diff --git a/app/server/appsmith-plugins/oraclePlugin/src/main/resources/templates/INSERT.sql b/app/server/appsmith-plugins/oraclePlugin/src/main/resources/templates/INSERT.sql index f59768c5c550..e4a64159fed7 100755 --- a/app/server/appsmith-plugins/oraclePlugin/src/main/resources/templates/INSERT.sql +++ b/app/server/appsmith-plugins/oraclePlugin/src/main/resources/templates/INSERT.sql @@ -1,8 +1,8 @@ INSERT INTO users - (name, gender, email) + (name, gender, email) VALUES - ( - {{ nameInput.text }}, - {{ genderDropdown.selectedOptionValue }}, - {{ emailInput.text }} - ) \ No newline at end of file + ( + {{ nameInput.text }}, + {{ genderDropdown.selectedOptionValue }}, + {{ emailInput.text }} + ) diff --git a/app/server/appsmith-plugins/oraclePlugin/src/main/resources/templates/UPDATE.sql b/app/server/appsmith-plugins/oraclePlugin/src/main/resources/templates/UPDATE.sql index 1e8246500e01..2b9cb5d2a0e2 100755 --- a/app/server/appsmith-plugins/oraclePlugin/src/main/resources/templates/UPDATE.sql +++ b/app/server/appsmith-plugins/oraclePlugin/src/main/resources/templates/UPDATE.sql @@ -1 +1 @@ -UPDATE users SET status = 'APPROVED' WHERE id = {{ usersTable.selectedRow.id }} \ No newline at end of file +UPDATE users SET status = 'APPROVED' WHERE id = {{ usersTable.selectedRow.id }} diff --git a/app/server/appsmith-plugins/postgresPlugin/src/main/resources/templates/CREATE.sql b/app/server/appsmith-plugins/postgresPlugin/src/main/resources/templates/CREATE.sql index b5253c2bf8b2..8588138670d3 100644 --- a/app/server/appsmith-plugins/postgresPlugin/src/main/resources/templates/CREATE.sql +++ b/app/server/appsmith-plugins/postgresPlugin/src/main/resources/templates/CREATE.sql @@ -1,8 +1,8 @@ INSERT INTO users - (name, gender, email) + (name, gender, email) VALUES - ( - {{ nameInput.text }}, - {{ genderDropdown.selectedOptionValue }}, - {{ emailInput.text }} - ); \ No newline at end of file + ( + {{ nameInput.text }}, + {{ genderDropdown.selectedOptionValue }}, + {{ emailInput.text }} + ); diff --git a/app/server/appsmith-plugins/postgresPlugin/src/main/resources/templates/DELETE.sql b/app/server/appsmith-plugins/postgresPlugin/src/main/resources/templates/DELETE.sql index e7014662d50a..459aa04c543d 100644 --- a/app/server/appsmith-plugins/postgresPlugin/src/main/resources/templates/DELETE.sql +++ b/app/server/appsmith-plugins/postgresPlugin/src/main/resources/templates/DELETE.sql @@ -1 +1 @@ -DELETE FROM users WHERE id = -1; \ No newline at end of file +DELETE FROM users WHERE id = -1; diff --git a/app/server/appsmith-plugins/postgresPlugin/src/main/resources/templates/SELECT.sql b/app/server/appsmith-plugins/postgresPlugin/src/main/resources/templates/SELECT.sql index 1c25fafff4ab..036ff8b22974 100644 --- a/app/server/appsmith-plugins/postgresPlugin/src/main/resources/templates/SELECT.sql +++ b/app/server/appsmith-plugins/postgresPlugin/src/main/resources/templates/SELECT.sql @@ -1,3 +1,3 @@ SELECT * FROM <> LIMIT 10; --- Please enter a valid table name and hit RUN \ No newline at end of file +-- Please enter a valid table name and hit RUN diff --git a/app/server/appsmith-plugins/postgresPlugin/src/main/resources/templates/UPDATE.sql b/app/server/appsmith-plugins/postgresPlugin/src/main/resources/templates/UPDATE.sql index de4915e6fd1b..5ecd96ba4dcf 100644 --- a/app/server/appsmith-plugins/postgresPlugin/src/main/resources/templates/UPDATE.sql +++ b/app/server/appsmith-plugins/postgresPlugin/src/main/resources/templates/UPDATE.sql @@ -1,3 +1,3 @@ UPDATE users - SET status = 'APPROVED' - WHERE id = {{ usersTable.selectedRow.id }}; + SET status = 'APPROVED' + WHERE id = {{ usersTable.selectedRow.id }}; diff --git a/app/server/appsmith-plugins/redshiftPlugin/src/main/resources/templates/CREATE.sql b/app/server/appsmith-plugins/redshiftPlugin/src/main/resources/templates/CREATE.sql index b5253c2bf8b2..8588138670d3 100644 --- a/app/server/appsmith-plugins/redshiftPlugin/src/main/resources/templates/CREATE.sql +++ b/app/server/appsmith-plugins/redshiftPlugin/src/main/resources/templates/CREATE.sql @@ -1,8 +1,8 @@ INSERT INTO users - (name, gender, email) + (name, gender, email) VALUES - ( - {{ nameInput.text }}, - {{ genderDropdown.selectedOptionValue }}, - {{ emailInput.text }} - ); \ No newline at end of file + ( + {{ nameInput.text }}, + {{ genderDropdown.selectedOptionValue }}, + {{ emailInput.text }} + ); diff --git a/app/server/appsmith-plugins/redshiftPlugin/src/main/resources/templates/DELETE.sql b/app/server/appsmith-plugins/redshiftPlugin/src/main/resources/templates/DELETE.sql index e7014662d50a..459aa04c543d 100644 --- a/app/server/appsmith-plugins/redshiftPlugin/src/main/resources/templates/DELETE.sql +++ b/app/server/appsmith-plugins/redshiftPlugin/src/main/resources/templates/DELETE.sql @@ -1 +1 @@ -DELETE FROM users WHERE id = -1; \ No newline at end of file +DELETE FROM users WHERE id = -1; diff --git a/app/server/appsmith-plugins/redshiftPlugin/src/main/resources/templates/SELECT.sql b/app/server/appsmith-plugins/redshiftPlugin/src/main/resources/templates/SELECT.sql index 1c25fafff4ab..036ff8b22974 100644 --- a/app/server/appsmith-plugins/redshiftPlugin/src/main/resources/templates/SELECT.sql +++ b/app/server/appsmith-plugins/redshiftPlugin/src/main/resources/templates/SELECT.sql @@ -1,3 +1,3 @@ SELECT * FROM <> LIMIT 10; --- Please enter a valid table name and hit RUN \ No newline at end of file +-- Please enter a valid table name and hit RUN diff --git a/app/server/appsmith-plugins/redshiftPlugin/src/main/resources/templates/UPDATE.sql b/app/server/appsmith-plugins/redshiftPlugin/src/main/resources/templates/UPDATE.sql index facf9fc3f9d6..5ecd96ba4dcf 100644 --- a/app/server/appsmith-plugins/redshiftPlugin/src/main/resources/templates/UPDATE.sql +++ b/app/server/appsmith-plugins/redshiftPlugin/src/main/resources/templates/UPDATE.sql @@ -1,3 +1,3 @@ UPDATE users - SET status = 'APPROVED' - WHERE id = {{ usersTable.selectedRow.id }}; \ No newline at end of file + SET status = 'APPROVED' + WHERE id = {{ usersTable.selectedRow.id }}; diff --git a/app/server/appsmith-plugins/snowflakePlugin/src/main/resources/templates/CREATE.sql b/app/server/appsmith-plugins/snowflakePlugin/src/main/resources/templates/CREATE.sql index 3166e4d345dd..85b7e1cce8e9 100644 --- a/app/server/appsmith-plugins/snowflakePlugin/src/main/resources/templates/CREATE.sql +++ b/app/server/appsmith-plugins/snowflakePlugin/src/main/resources/templates/CREATE.sql @@ -1,8 +1,8 @@ INSERT INTO users - (name, gender, email) + (name, gender, email) VALUES - ( - '{{ nameInput.text }}', - '{{ genderDropdown.selectedOptionValue }}', - '{{ emailInput.text }}' - ); \ No newline at end of file + ( + '{{ nameInput.text }}', + '{{ genderDropdown.selectedOptionValue }}', + '{{ emailInput.text }}' + ); diff --git a/app/server/appsmith-plugins/snowflakePlugin/src/main/resources/templates/DELETE.sql b/app/server/appsmith-plugins/snowflakePlugin/src/main/resources/templates/DELETE.sql index e7014662d50a..459aa04c543d 100644 --- a/app/server/appsmith-plugins/snowflakePlugin/src/main/resources/templates/DELETE.sql +++ b/app/server/appsmith-plugins/snowflakePlugin/src/main/resources/templates/DELETE.sql @@ -1 +1 @@ -DELETE FROM users WHERE id = -1; \ No newline at end of file +DELETE FROM users WHERE id = -1; diff --git a/app/server/appsmith-plugins/snowflakePlugin/src/main/resources/templates/SELECT.sql b/app/server/appsmith-plugins/snowflakePlugin/src/main/resources/templates/SELECT.sql index 1c25fafff4ab..036ff8b22974 100644 --- a/app/server/appsmith-plugins/snowflakePlugin/src/main/resources/templates/SELECT.sql +++ b/app/server/appsmith-plugins/snowflakePlugin/src/main/resources/templates/SELECT.sql @@ -1,3 +1,3 @@ SELECT * FROM <> LIMIT 10; --- Please enter a valid table name and hit RUN \ No newline at end of file +-- Please enter a valid table name and hit RUN diff --git a/app/server/appsmith-plugins/snowflakePlugin/src/main/resources/templates/UPDATE.sql b/app/server/appsmith-plugins/snowflakePlugin/src/main/resources/templates/UPDATE.sql index 966633a70592..0a7e95bb77c3 100644 --- a/app/server/appsmith-plugins/snowflakePlugin/src/main/resources/templates/UPDATE.sql +++ b/app/server/appsmith-plugins/snowflakePlugin/src/main/resources/templates/UPDATE.sql @@ -1,3 +1,3 @@ UPDATE users - SET status = 'APPROVED' - WHERE id = '{{ usersTable.selectedRow.id }}'; \ No newline at end of file + SET status = 'APPROVED' + WHERE id = '{{ usersTable.selectedRow.id }}'; diff --git a/app/server/pom.xml b/app/server/pom.xml index 1bd3cba3ad89..814ba6851871 100644 --- a/app/server/pom.xml +++ b/app/server/pom.xml @@ -134,6 +134,7 @@ *.md .gitignore + **/*.sql