@directus/api
Version:
Directus is a real-time API and App dashboard for managing SQL database content
15 lines (14 loc) • 684 B
JavaScript
import { CapabilitiesHelper } from '../types.js';
export class CapabilitiesHelperPostgres extends CapabilitiesHelper {
supportsColumnPositionInGroupBy() {
// Supported in Postgres https://www.postgresql.org/docs/8.3/sql-select.html#SQL-GROUPBY
// Supported in CockroachDB (tested manually)
return true;
}
supportsDeduplicationOfParameters() {
// Postgres infers the type from the context in which the parameter is first referenced.
// This causes issues when the same parameter is used in different contexts with different types.
// See https://www.postgresql.org/docs/current/sql-prepare.html
return false;
}
}