module Ktistec::Model::Internal

Defined in:

framework/model.cr

Class Method Summary

Class Method Detail

def self.log_query(query, args, &) #

Logs query performance.

Times a database call and selectively emits a log message. The severity of the log message is based on the duration of the query. A slow query is any query that takes longer than 50ms. Slow queries include the query plan.


[View source]
def self.to_sentence(type) #

Transforms a type, in particular a union type, into a sentence.


[View source]