struct
CQL::Performance::QueryData
- CQL::Performance::QueryData
- Struct
- Value
- Object
Overview
Extension methods for QueryData to support to_h
Defined in:
performance/performance_metrics.crperformance/query_profiler.cr
Constructors
Instance Method Summary
- #error : String | Nil
- #execution_time : Time::Span
- #normalized_sql : String
- #params : Array(DB::Any)
- #rows_affected : Int64 | Nil
- #slow?(threshold : Time::Span) : Bool
- #sql : String
- #timestamp : Time
-
#to_h(include_params : Bool = false) : Hash(String, JSON::Any)
Bound values often hold personal data, so
#paramsis only included when asked for.
Constructor Detail
def self.new(sql : String, params : Array(Bool | Float32 | Float64 | Int32 | Int64 | Slice(UInt8) | String | Time | Nil), execution_time : Time::Span, rows_affected : Int64 | Nil = nil, error : Nil | String = nil, normalized_sql : Nil | String = nil)
#