API reference: @salmonui/query-builder/sql
ToSqlOptionsinterface
import type { ToSqlOptions } from '@salmonui/query-builder/sql';interface ToSqlOptions {
readonly named?: boolean;
readonly inline?: boolean;
readonly quoteIdentifier?: boolean | ((name: string) => string);
readonly dialect?: SqlDialect;
readonly operators?: Readonly<Record<string, (ctx: SqlOperatorContext) => string>>;
readonly pathSeparator?: string;
readonly paramPrefix?: string;
}
| Name | Signature | Description |
|---|---|---|
namedoptional | readonly named?: boolean; | Named placeholders ( |
inlineoptional | readonly inline?: boolean; | Escaped literals instead of placeholders ( |
quoteIdentifieroptional | readonly quoteIdentifier?: boolean | ((name: string) => string); | Quotes identifiers for the dialect (each path segment), or quotes with a function. Default false. |
dialectoptional | readonly dialect?: SqlDialect; | Placeholder and quoting style. Default |
operatorsoptional | readonly operators?: Readonly<Record<string, (ctx: SqlOperatorContext) => string>>; | SQL of custom operators, keyed by operator name; they also override built-ins. |
pathSeparatoroptional | readonly pathSeparator?: string; | Separator of nested field paths. Default |
paramPrefixoptional | readonly paramPrefix?: string; | Prefix of named parameters. Default |