diff --git a/packages/builder/src/components/backend/DatasourceNavigator/icons/MySQL.svelte b/packages/builder/src/components/backend/DatasourceNavigator/icons/MySQL.svelte new file mode 100644 index 0000000000..d2e612e7e3 --- /dev/null +++ b/packages/builder/src/components/backend/DatasourceNavigator/icons/MySQL.svelte @@ -0,0 +1,83 @@ + + + diff --git a/packages/builder/src/components/backend/DatasourceNavigator/icons/index.js b/packages/builder/src/components/backend/DatasourceNavigator/icons/index.js index afedb9e78f..4f8d79dbf4 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/icons/index.js +++ b/packages/builder/src/components/backend/DatasourceNavigator/icons/index.js @@ -6,6 +6,7 @@ import CouchDB from "./CouchDB.svelte" import S3 from "./S3.svelte" import Airtable from "./Airtable.svelte" import SqlServer from "./SQLServer.svelte" +import MySQL from "./MySQL.svelte" export default { POSTGRES: Postgres, @@ -16,4 +17,5 @@ export default { SQL_SERVER: SqlServer, S3: S3, AIRTABLE: Airtable, + MYSQL: MySQL, } diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/TableViewSelect.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/TableViewSelect.svelte index 4e5201a180..6b3873a08c 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/TableViewSelect.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/TableViewSelect.svelte @@ -34,7 +34,7 @@ })) return [...acc, ...viewsArr] }, []) - $: queries = $backendUiStore.queries.map(query => ({ + $: queries = $backendUiStore.queries.filter(query => query.queryVerb === "read").map(query => ({ label: query.name, name: query.name, tableId: query._id, diff --git a/packages/builder/src/components/integration/QueryViewer.svelte b/packages/builder/src/components/integration/QueryViewer.svelte index da5f4e1a40..485dbf7411 100644 --- a/packages/builder/src/components/integration/QueryViewer.svelte +++ b/packages/builder/src/components/integration/QueryViewer.svelte @@ -164,7 +164,7 @@