Fixing some build/type issues.
This commit is contained in:
parent
2d75e1e85c
commit
71ad1fde0f
|
@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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`")
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { generateLinkID } from "../utils"
|
||||
import { generateLinkID, generateJunctionTableID } from "../utils"
|
||||
import { FieldType, LinkDocument } from "@budibase/types"
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue