Module: Upkeep::SQLDependencyAnalysis

Defined in:
lib/upkeep/sql_dependency_analysis.rb

Defined Under Namespace

Classes: Analyzer, Result, Source, UnsupportedError

Class Method Summary collapse

Class Method Details

.analyze(statement, schema:, scope: nil) ⇒ Object



25
26
27
# File 'lib/upkeep/sql_dependency_analysis.rb', line 25

def analyze(statement, schema:, scope: nil)
  Analyzer.new(statement, schema: schema, scope: scope).analyze
end

.preserve_wildcard_projections(original, qualified) ⇒ Object

Record rendering tracks wildcard attributes separately from collections.



30
31
32
# File 'lib/upkeep/sql_dependency_analysis.rb', line 30

def preserve_wildcard_projections(original, qualified)
  ProjectionPreserver.new(original, qualified).call
end