We will create a UI that will create a new action table.
Create a new file src/routes/create-table/+page.svelte and add the following form.
<script> <scriptlang="ts"> export let form;</script><main> <h1>Create Action Table</h1> {#if form?.success} <!-- this message is ephemeral; it exists because the page was rendered in response to a form submission. it will vanish if the user reloads --> <p>Successfully created the table.</p> {/if} {#if !form?.success} <!-- this message is ephemeral; it exists because the page was rendered in response to a form submission. it will vanish if the user reloads --> <p>Sorry, something went wrong!</p> {/if} <formmethod="POST"action="/create-table"> <label> Table ID <inputname="table_id" /> </label> <label> Column Name <inputname="column_name" /> </label> <label> Columng Data Type <selectname="column_d_type"> <optionvalue="str">str</option> <optionvalue="int">int</option> <optionvalue="float">float</option> <optionvalue="bool">bool</option> </select> </label> <buttontype="submit">Create</button> </form></main>