1
0
Fork 0
mirror of synced 2024-09-02 10:41:09 +12:00

Fixing some build/type issues.

This commit is contained in:
mike12345567 2024-02-28 17:16:36 +00:00
parent 2d75e1e85c
commit 71ad1fde0f
5 changed files with 18 additions and 11 deletions

View file

@ -146,4 +146,11 @@ export class DDInstrumentedDatabase implements Database {
return this.db.getIndexes(...args)
})
}
sql<T>(sql: string): Promise<T> {
return tracer.trace("db.sql", span => {
span?.addTags({ db_name: this.name })
return this.db.sql(sql)
})
}
}

View file

@ -145,7 +145,7 @@ export async function sqlSearch(ctx: UserCtx) {
let sql = builder._query(request, {
disableReturning: true,
disablePreparedStatements: true,
})
}) as string
// quick hack for docIds
sql = sql.replace(/`doc1`.`rowId`/g, "`doc1.rowId`")

View file

@ -1,4 +1,4 @@
import { generateLinkID } from "../utils"
import { generateLinkID, generateJunctionTableID } from "../utils"
import { FieldType, LinkDocument } from "@budibase/types"
/**

View file

@ -1,17 +1,11 @@
import {
Row,
SearchFilters,
SearchParams,
SortOrder,
SortType,
} from "@budibase/types"
import { Row, SearchFilters, SearchParams, SortOrder } from "@budibase/types"
import { isExternalTableID } from "../../../integrations/utils"
import * as internal from "./search/internal"
import * as external from "./search/external"
import { Format } from "../../../api/controllers/view/exporters"
import { NoEmptyFilterStrings } from "../../../constants"
export { isValidFilter, removeEmptyFilters } from "../../../integrations/utils"
export { isValidFilter } from "../../../integrations/utils"
export interface ViewParams {
calculation: string

View file

@ -135,7 +135,13 @@ export async function exportRows(
rows = result
}
let exportRows = cleanExportRows(rows, schema, format, columns, customHeaders)
let exportRows = sdk.rows.utils.cleanExportRows(
rows,
schema,
format,
columns,
customHeaders
)
if (format === Format.CSV) {
return {
fileName: "export.csv",