@directus/api
Version:
Directus is a real-time API and App dashboard for managing SQL database content
20 lines (18 loc) • 798 B
JavaScript
import { DatabaseHelper } from "../types.js";
//#region src/database/helpers/capabilities/types.ts
var CapabilitiesHelper = class extends DatabaseHelper {
supportsColumnPositionInGroupBy() {
return false;
}
/**
* Indicates if the values within the list of parameters can be safely deduplicated.
* This is useful for databases that do not automatically cast the value for cases when a parameter is referenced multiple times in the query,
* but the targeting type is different. For example when referencing a parameter which a UUID, postgres cannot use the same parameter reference
* to compare it against column of type UUID and at the same time against a column of type a string.
*/
supportsDeduplicationOfParameters() {
return true;
}
};
//#endregion
export { CapabilitiesHelper };