1
0
Fork 0
mirror of synced 2024-09-20 19:33:10 +12:00

Rename db to dbCore in more places.

This commit is contained in:
Sam Rose 2024-07-10 11:37:37 +01:00
parent 76d22dfffd
commit 5069d3f953
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View file

@ -324,7 +324,7 @@ class TableSaveFunctions {
importRows: this.importRows, importRows: this.importRows,
user: this.user, user: this.user,
}) })
if (db.isSqsEnabledForTenant()) { if (dbCore.isSqsEnabledForTenant()) {
await sdk.tables.sqs.addTable(table) await sdk.tables.sqs.addTable(table)
} }
return table return table

View file

@ -16,7 +16,7 @@ import { ExportRowsParams, ExportRowsResult } from "./search/types"
import { dataFilters } from "@budibase/shared-core" import { dataFilters } from "@budibase/shared-core"
import sdk from "../../index" import sdk from "../../index"
import { searchInputMapping } from "./search/utils" import { searchInputMapping } from "./search/utils"
import { db } from "@budibase/backend-core" import { db as dbCore } from "@budibase/backend-core"
export { isValidFilter } from "../../../integrations/utils" export { isValidFilter } from "../../../integrations/utils"
@ -115,7 +115,7 @@ export async function search(
if (isExternalTable) { if (isExternalTable) {
return external.search(options, table) return external.search(options, table)
} else if (db.isSqsEnabledForTenant()) { } else if (dbCore.isSqsEnabledForTenant()) {
return sqs.search(options, table) return sqs.search(options, table)
} else { } else {
return internal.search(options, table) return internal.search(options, table)

View file

@ -1,4 +1,4 @@
import { context, db, env } from "@budibase/backend-core" import { context, db as dbCore, env } from "@budibase/backend-core"
import { getTableParams } from "../../../db/utils" import { getTableParams } from "../../../db/utils"
import { import {
breakExternalTableId, breakExternalTableId,
@ -33,7 +33,7 @@ export function processTable(table: Table): Table {
sourceId: table.sourceId || INTERNAL_TABLE_SOURCE_ID, sourceId: table.sourceId || INTERNAL_TABLE_SOURCE_ID,
sourceType: TableSourceType.INTERNAL, sourceType: TableSourceType.INTERNAL,
} }
if (db.isSqsEnabledForTenant()) { if (dbCore.isSqsEnabledForTenant()) {
processed.sql = !!env.SQS_SEARCH_ENABLE processed.sql = !!env.SQS_SEARCH_ENABLE
} }
return processed return processed