Module: PgCanary::PgQuerySupport

Included in:
Detector, Rules::Base, Rules::QueryContext, Rules::QueryContext::Scope
Defined in:
lib/pg_canary/pg_query_support.rb

Overview

Helpers over the pg_query protobuf AST — the unwrapping, traversal and value extraction the pg_query gem does not provide itself. Mix into anything that inspects parsed queries (include for instance level, extend for class level).

Constant Summary collapse

COMPARISON_OPS =
%w[= <> != < > <= >=].freeze