module Clear::Model::Converter

Defined in:

clear/model/converters/base.cr
clear/model/converters/number_converters.cr

Constant Summary

CONVERTERS = {"Array(Bool)" => Clear::Model::Converter::ArrayConverterBool, "Array(Bool | Nil)" => Clear::Model::Converter::ArrayConverterBool, "Array(String)" => Clear::Model::Converter::ArrayConverterString, "Array(String | Nil)" => Clear::Model::Converter::ArrayConverterString, "Array(Float32)" => Clear::Model::Converter::ArrayConverterFloat32, "Array(Float32 | Nil)" => Clear::Model::Converter::ArrayConverterFloat32, "Array(Float64)" => Clear::Model::Converter::ArrayConverterFloat64, "Array(Float64 | Nil)" => Clear::Model::Converter::ArrayConverterFloat64, "Array(Int32)" => Clear::Model::Converter::ArrayConverterInt32, "Array(Int32 | Nil)" => Clear::Model::Converter::ArrayConverterInt32, "Array(Int64)" => Clear::Model::Converter::ArrayConverterInt64, "Array(Int64 | Nil)" => Clear::Model::Converter::ArrayConverterInt64, "Bool" => Clear::Model::Converter::BoolConverter, "JSON::Any" => Clear::Model::Converter::JSON::AnyConverter, "Int8" => ::Clear::Model::Converter::Int8Converter, "Int16" => ::Clear::Model::Converter::Int16Converter, "Int32" => ::Clear::Model::Converter::Int32Converter, "Int64" => ::Clear::Model::Converter::Int64Converter, "UInt8" => ::Clear::Model::Converter::UInt8Converter, "UInt16" => ::Clear::Model::Converter::UInt16Converter, "UInt32" => ::Clear::Model::Converter::UInt32Converter, "UInt64" => ::Clear::Model::Converter::UInt64Converter, "Float32" => ::Clear::Model::Converter::Float32Converter, "Float64" => ::Clear::Model::Converter::Float64Converter, "BigInt" => ::Clear::Model::Converter::BigIntConverter, "BigFloat" => ::Clear::Model::Converter::BigFloatConverter, "BigDecimal" => ::Clear::Model::Converter::BigDecimalConverter, "String" => Clear::Model::Converter::StringConverter, "Time" => Clear::Model::Converter::TimeConverter, "Crypto::Bcrypt::Password" => Clear::Model::Converter::BcryptPasswordConverter, "Clear::TSVector" => Clear::TSVector::Converter, "PG::Interval" => Clear::PG::Interval::Converter, "Clear::TimeInDay" => Clear::TimeInDay::Converter, "UUID" => Clear::Model::Converter::UUIDConverter} of String => Base.class

Macro Summary

Macro Detail

macro add_converter(name, klazz) #

[View source]
macro to_column(name, value) #

[View source]
macro to_db(name, value) #

[View source]