Module: Sequel::TraceDatabase

Defined in:
lib/sequel/extensions/database_instrumentation.rb

Constant Summary collapse

OPTS =
{}.freeze

Instance Method Summary collapse

Instance Method Details

#execute_ddl(sql, opts = OPTS, &block) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/sequel/extensions/database_instrumentation.rb', line 7

def execute_ddl(sql, opts = OPTS, &block)
  tags = {
    'db.type' => database_type.to_s,
    'db.statement' => sql,
  }

  ::Sequel::Instrumentation.trace_query('sequel.database.execute', tags) do
    super
  end
end