fix build

This commit is contained in:
Ruben Fiszel
2023-07-10 08:53:21 +02:00
parent aa807353fc
commit d71eeb5fef
3 changed files with 7 additions and 7 deletions

View File

@@ -19,9 +19,9 @@
content: `
import { Client } from 'https://deno.land/x/postgres/mod.ts'
export async function main(args: any) {
const u = new URL(`postgres://${args.user}:${args.password}@${args.host}:${args.port ?? 5432}/${args.dbname}?sslmode=${args.sslmode}`)
const u = new URL("postgres://")
u.hash = ''
u.search = `?sslmode=${args.sslmode}`
u.search = \`?sslmode=${args.sslmode}\`
u.pathname = args.dbname
u.host = args.host
u.password = args.password

View File

@@ -32,7 +32,7 @@
go: GoIcon,
python3: PythonIcon,
deno: TypeScriptIcon,
graphql: TypeScriptIcon,
// graphql: TypeScriptIcon,
bun: TypeScriptIcon,
bash: BashIcon,
pgsql: PostgresIcon,

View File

@@ -12,12 +12,12 @@ export function scriptLangToEditorLang(lang: Script.language) {
return 'typescript'
} else if (lang == 'nativets') {
return 'typescript'
} else if (lang == 'graphql') {
return 'typescript'
// } else if (lang == 'graphql') {
// return 'typescript'
} else if (lang == 'postgresql') {
return 'sql'
} else if (lang == 'mysql') {
return 'sql'
// } else if (lang == 'mysql') {
// return 'sql'
} else if (lang == 'python3') {
return 'python'
} else if (lang == 'bash') {