mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-03 16:04:30 +00:00
17 lines
386 B
Ruby
17 lines
386 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
module Database
|
|
module QueryAnalyzers
|
|
# Methods that are commonly used between analyzers
|
|
class QueryAnalyzerHelpers
|
|
class << self
|
|
def dml_from_create_view?(parsed)
|
|
parsed.pg.tree.stmts.select { |stmts| stmts.stmt.node == :view_stmt }.any?
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|