You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: database_statements.rb
    path of file: ./repos/activerecord-trilogy-adapter/lib/active_record/connection_adapters/trilogy
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module ActiveRec
    
        def build_explain_clause(options = [])
          return "EXPLAIN" if options.empty?

          explain_clause = "EXPLAIN #{options.join(" ").upcase}"

          if analyze_without_explain? && explain_clause.include?("ANALYZE")
            explain_clause.sub("EXPLAIN ", "")
          else
            explain_clause
          end