Represents a custom SQL filter that can be used in Nunjucks templates for safe SQL query construction in RunQuery operations

interface RunQuerySQLFilter {
    description: string;
    exampleInput: any;
    exampleOutput: string;
    exampleSyntax: string;
    implementation?: ((value) => any);
    name: string;
    notes?: string;
}

Properties

description: string

Human-readable description of what the filter does

exampleInput: any

Example input value

exampleOutput: string

Example output after filtering

exampleSyntax: string

Example usage showing the filter syntax in a Nunjucks template

implementation?: ((value) => any)

Optional implementation function for the filter. When provided, this function will be called to apply the filter. This is separate from the definition to keep AI prompts token-efficient.

Type declaration

    • (value): any
    • Parameters

      • value: any

      Returns any

name: string

The name of the filter as used in templates (e.g., "sqlString")

notes?: string

Additional notes or warnings about using this filter