1
0
Fork 0
mirror of synced 2024-10-02 10:08:09 +13:00

Remove some extraneous, unused code.

This commit is contained in:
Sam Rose 2024-03-12 17:21:33 +00:00
parent b8f061df68
commit d061c19c80
No known key found for this signature in database
2 changed files with 1 additions and 23 deletions

View file

@ -28,7 +28,7 @@ import {
import Sql from "./base/sql"
import { MSSQLTablesResponse, MSSQLColumn } from "./base/types"
import { getReadableErrorMessage } from "./base/errorMapping"
import sqlServer, { IRecordSet, IResult } from "mssql"
import sqlServer from "mssql"
const DEFAULT_SCHEMA = "dbo"

View file

@ -400,28 +400,6 @@ class MySQLIntegration extends Sql implements DatasourcePlus {
}
}
_postProcessJson(json: QueryJson, results: any) {
const table = json.meta?.table
if (!table) {
return results
}
for (const [name, field] of Object.entries(table.schema)) {
if (
field.type === FieldType.JSON ||
(field.type === FieldType.BB_REFERENCE &&
field.subtype === FieldSubtype.USERS)
) {
const fullName = `${table.name}.${name}`
for (let row of results) {
if (typeof row[fullName] === "string") {
row[fullName] = JSON.parse(row[fullName])
}
}
}
}
return results
}
async getExternalSchema() {
try {
const [databaseResult] = await this.internalQuery({