diff --git a/deno-client/mod.ts b/deno-client/mod.ts index 41d8860282..0d3ceec648 100644 --- a/deno-client/mod.ts +++ b/deno-client/mod.ts @@ -14,7 +14,6 @@ BigInt.prototype.toJSON = function () { }; export { pgSql, pgClient } from './pg.ts' -export { mySql, mysqlClient } from './mysql.ts' export type Sql = string export type Email = string diff --git a/frontend/src/lib/components/ScriptBuilder.svelte b/frontend/src/lib/components/ScriptBuilder.svelte index 539295c6ea..6e9024249a 100644 --- a/frontend/src/lib/components/ScriptBuilder.svelte +++ b/frontend/src/lib/components/ScriptBuilder.svelte @@ -245,7 +245,7 @@ > PostgreSQL - + -->
diff --git a/frontend/src/lib/components/flows/content/FlowInputs.svelte b/frontend/src/lib/components/flows/content/FlowInputs.svelte index b7b7755dd1..81a5370228 100644 --- a/frontend/src/lib/components/flows/content/FlowInputs.svelte +++ b/frontend/src/lib/components/flows/content/FlowInputs.svelte @@ -142,12 +142,12 @@ dispatch('new', { language: RawScript.language.DENO, kind, subkind: 'pgsql' })} /> - dispatch('new', { language: RawScript.language.DENO, kind, subkind: 'mysql' })} - /> + /> --> {/if} {/if}
diff --git a/frontend/src/lib/script_helpers.ts b/frontend/src/lib/script_helpers.ts index 788ee81ab0..92f75c4158 100644 --- a/frontend/src/lib/script_helpers.ts +++ b/frontend/src/lib/script_helpers.ts @@ -95,22 +95,22 @@ export async function main( return query.rows; }` -export const MYSQL_INIT_CODE = `import { - mySql, - type Resource -} from "https://deno.land/x/windmill@v${__pkg__.version}/mod.ts"; +// export const MYSQL_INIT_CODE = `import { +// mySql, +// type Resource +// } from "https://deno.land/x/windmill@v${__pkg__.version}/mysql.ts"; -// MySQL parameterized statement. No SQL injection is possible. -export async function main( - db: Resource<"mysql">, - key: number, - value: string, -) { - const query = await mySql( - db - )\`INSERT INTO demo VALUES (\${key}, \${value})\`; - return query.rows; -}`; +// // MySQL parameterized statement. No SQL injection is possible. +// export async function main( +// db: Resource<"mysql">, +// key: number, +// value: string, +// ) { +// const query = await mySql( +// db +// )\`INSERT INTO demo VALUES (\${key}, \${value})\`; +// return query.rows; +// }`; export const BASH_INIT_CODE = `# arguments of the form X="$I" are parsed as parameters X of type string msg="$1"