module DB::MetadataValueConverter

Overview

NOTE should be removed after migration to the latest crystal-db :nodoc:

Defined in:

lib/db/src/db/statement.cr
jennifer/adapter/shared/db.cr

Class Method Summary

Class Method Detail

def self.arg_to_log(arg : Enumerable) : ::Log::Metadata::Value #

Returns arg encoded as a ::Log::Metadata::Value.


[View source]
def self.arg_to_log(arg : UInt64) : ::Log::Metadata::Value #

Returns arg encoded as a ::Log::Metadata::Value.


[View source]
def self.arg_to_log(arg : Int) : ::Log::Metadata::Value #

Returns arg encoded as a ::Log::Metadata::Value.


[View source]
def self.arg_to_log(arg : Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Time) : ::Log::Metadata::Value #

Returns arg encoded as a ::Log::Metadata::Value.


[View source]
def self.arg_to_log(arg) : ::Log::Metadata::Value #

Returns arg encoded as a ::Log::Metadata::Value.


[View source]