{#await import('$lib/components/Editor.svelte')}
{:then Module}
code, (v) => ((code = v), onCodeChange?.(v))} scriptLang="mysql" sqlSchema={schema} class="w-full h-full" cmdEnterAction={run} /> {/await}
run()} > {isRunning ? 'Running...' : 'Run'}
{#if historyOpen}
Run history
(historyOpen = false)} />
{ const data = e.detail as (typeof runHistory)[number] editor?.setCode(data.code) onData(data.result, data.code) }} />
{:else}
(historyOpen = true)} />
{/if}
{#if datatableName && ws}
{/if}