merge conflict fail

This commit is contained in:
Diego Imbert
2025-11-28 15:56:03 +01:00
parent f5ea5e2a0a
commit f7fe83d965
@@ -10,6 +10,7 @@ import type { DBSchema, DBSchemas, GraphqlSchema, SQLSchema } from '$lib/stores'
import { tryEvery } from '$lib/utils'
import { stringifySchema } from '$lib/components/copilot/lib'
import type { DbType } from '$lib/components/dbTypes'
import { getDatabaseArg } from '$lib/components/dbOps'
export async function loadTableMetaData(
input: DbInput,
@@ -26,7 +27,7 @@ export async function loadTableMetaData(
requestBody: {
language,
content,
args: input.type === 'database' ? { database: '$res:' + input.resourcePath } : {}
args: getDatabaseArg(input)
}
})
@@ -75,7 +76,7 @@ export async function loadAllTablesMetaData(
requestBody: {
language,
content: await makeLoadTableMetaDataQuery(input, workspace, undefined),
args: input.type === 'database' ? { database: '$res:' + input.resourcePath } : {}
args: getDatabaseArg(input)
}
})) as ({ table_name: string; schema_name?: string } & object)[]
if (input.type === 'database' && input.resourceType === 'ms_sql_server') {