@aikidosec/firewall
Version:
Zen by Aikido is an embedded Application Firewall that autonomously protects Node.js apps against common and critical attacks, provides rate limiting, detects malicious traffic (including bots), and more.
29 lines (28 loc) • 919 B
TypeScript
export type TableRef = {
name: string;
alias?: string;
};
export type FilterColumn = {
table?: string;
column: string;
value: string;
/** 0-based position of a `?` placeholder in the query (MySQL-style) */
placeholder_number?: number;
/** Whether the value is a placeholder (e.g. `?`, `$1`) rather than a literal */
is_placeholder: boolean;
};
export type InsertColumn = {
column: string;
value: string;
/** 0-based position of a `?` placeholder in the query (MySQL-style) */
placeholder_number?: number;
/** Whether the value is a placeholder (e.g. `?`, `$1`) rather than a literal */
is_placeholder: boolean;
};
export type SqlQueryResult = {
kind: "select" | "insert" | "update" | "delete";
tables: TableRef[];
filters: FilterColumn[];
/** For INSERT statements: column-value pairs for each row */
insert_columns?: InsertColumn[][];
};