2020-12-19 07:19:43 +13:00
|
|
|
<script>
|
|
|
|
import { TextArea } from "@budibase/bbui"
|
2020-12-31 00:46:37 +13:00
|
|
|
import Editor from "./Editor.svelte"
|
2020-12-19 07:19:43 +13:00
|
|
|
|
|
|
|
const QueryTypes = {
|
|
|
|
SQL: "sql",
|
|
|
|
}
|
|
|
|
|
|
|
|
export let queryType
|
|
|
|
export let query
|
2020-12-31 00:46:37 +13:00
|
|
|
|
|
|
|
$: console.log(query)
|
2020-12-19 07:19:43 +13:00
|
|
|
</script>
|
|
|
|
|
|
|
|
{#if queryType === QueryTypes.SQL}
|
2020-12-31 00:46:37 +13:00
|
|
|
<Editor label="Query" bind:value={query} />
|
2020-12-19 07:19:43 +13:00
|
|
|
{/if}
|