fix build
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
go: GoIcon,
|
||||
python3: PythonIcon,
|
||||
deno: TypeScriptIcon,
|
||||
graphql: TypeScriptIcon,
|
||||
// graphql: TypeScriptIcon,
|
||||
bun: TypeScriptIcon,
|
||||
bash: BashIcon,
|
||||
pgsql: PostgresIcon,
|
||||
|
||||
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user