module Granite::Type

Extended Modules

Defined in:

granite/type.cr

Instance Method Summary

Instance Method Detail

def convert_type(value : String, t : Int8.class) : Int8 #

Converts a String to Int8.


[View source]
def convert_type(value : String, t : (Int8 | ::Nil).class) : Int8 | Nil #

Converts a String to Int8?.


[View source]
def convert_type(value : String, t : Int16.class) : Int16 #

Converts a String to Int16.


[View source]
def convert_type(value : String, t : (Int16 | ::Nil).class) : Int16 | Nil #

Converts a String to Int16?.


[View source]
def convert_type(value : String, t : Int32.class) : Int32 #

Converts a String to Int32.


[View source]
def convert_type(value : String, t : (Int32 | ::Nil).class) : Int32 | Nil #

Converts a String to Int32?.


[View source]
def convert_type(value : String, t : Int64.class) : Int64 #

Converts a String to Int64.


[View source]
def convert_type(value : String, t : (Int64 | ::Nil).class) : Int64 | Nil #

Converts a String to Int64?.


[View source]
def convert_type(value : String, t : UInt8.class) : UInt8 #

Converts a String to UInt8.


[View source]
def convert_type(value : String, t : (UInt8 | ::Nil).class) : UInt8 | Nil #

Converts a String to UInt8?.


[View source]
def convert_type(value : String, t : UInt16.class) : UInt16 #

Converts a String to UInt16.


[View source]
def convert_type(value : String, t : (UInt16 | ::Nil).class) : UInt16 | Nil #

Converts a String to UInt16?.


[View source]
def convert_type(value : String, t : UInt32.class) : UInt32 #

Converts a String to UInt32.


[View source]
def convert_type(value : String, t : (UInt32 | ::Nil).class) : UInt32 | Nil #

Converts a String to UInt32?.


[View source]
def convert_type(value : String, t : UInt64.class) : UInt64 #

Converts a String to UInt64.


[View source]
def convert_type(value : String, t : (UInt64 | ::Nil).class) : UInt64 | Nil #

Converts a String to UInt64?.


[View source]
def convert_type(value : String, t : Float32.class) : Float32 #

Converts a String to Float32.


[View source]
def convert_type(value : String, t : (Float32 | ::Nil).class) : Float32 | Nil #

Converts a String to Float32?.


[View source]
def convert_type(value : String, t : Float64.class) : Float64 #

Converts a String to Float64.


[View source]
def convert_type(value : String, t : (Float64 | ::Nil).class) : Float64 | Nil #

Converts a String to Float64?.


[View source]
def convert_type(value, type : (Bool | ::Nil).class) : Bool #

[View source]
def convert_type(value, type) #

[View source]
def from_rs(result : DB::ResultSet, t : Int8.class) : Int8 #

Converts a DB::ResultSet to Int8.


[View source]
def from_rs(result : DB::ResultSet, t : (Int8 | ::Nil).class) : Int8 | Nil #

Converts a DB::ResultSet to Int8?.


[View source]
def from_rs(result : DB::ResultSet, t : Array(Int8).class) : Array(Int8) #

Converts an DB::ResultSet to Array(Int8).


[View source]
def from_rs(result : DB::ResultSet, t : (Array(Int8) | ::Nil).class) : Array(Int8) | Nil #

Converts an DB::ResultSet to Array(Int8)?.


[View source]
def from_rs(result : DB::ResultSet, t : Int16.class) : Int16 #

Converts a DB::ResultSet to Int16.


[View source]
def from_rs(result : DB::ResultSet, t : (Int16 | ::Nil).class) : Int16 | Nil #

Converts a DB::ResultSet to Int16?.


[View source]
def from_rs(result : DB::ResultSet, t : Array(Int16).class) : Array(Int16) #

Converts an DB::ResultSet to Array(Int16).


[View source]
def from_rs(result : DB::ResultSet, t : (Array(Int16) | ::Nil).class) : Array(Int16) | Nil #

Converts an DB::ResultSet to Array(Int16)?.


[View source]
def from_rs(result : DB::ResultSet, t : Int32.class) : Int32 #

Converts a DB::ResultSet to Int32.


[View source]
def from_rs(result : DB::ResultSet, t : (Int32 | ::Nil).class) : Int32 | Nil #

Converts a DB::ResultSet to Int32?.


[View source]
def from_rs(result : DB::ResultSet, t : Array(Int32).class) : Array(Int32) #

Converts an DB::ResultSet to Array(Int32).


[View source]
def from_rs(result : DB::ResultSet, t : (Array(Int32) | ::Nil).class) : Array(Int32) | Nil #

Converts an DB::ResultSet to Array(Int32)?.


[View source]
def from_rs(result : DB::ResultSet, t : Int64.class) : Int64 #

Converts a DB::ResultSet to Int64.


[View source]
def from_rs(result : DB::ResultSet, t : (Int64 | ::Nil).class) : Int64 | Nil #

Converts a DB::ResultSet to Int64?.


[View source]
def from_rs(result : DB::ResultSet, t : Array(Int64).class) : Array(Int64) #

Converts an DB::ResultSet to Array(Int64).


[View source]
def from_rs(result : DB::ResultSet, t : (Array(Int64) | ::Nil).class) : Array(Int64) | Nil #

Converts an DB::ResultSet to Array(Int64)?.


[View source]
def from_rs(result : DB::ResultSet, t : UInt8.class) : UInt8 #

Converts a DB::ResultSet to UInt8.


[View source]
def from_rs(result : DB::ResultSet, t : (UInt8 | ::Nil).class) : UInt8 | Nil #

Converts a DB::ResultSet to UInt8?.


[View source]
def from_rs(result : DB::ResultSet, t : Array(UInt8).class) : Array(UInt8) #

Converts an DB::ResultSet to Array(UInt8).


[View source]
def from_rs(result : DB::ResultSet, t : (Array(UInt8) | ::Nil).class) : Array(UInt8) | Nil #

Converts an DB::ResultSet to Array(UInt8)?.


[View source]
def from_rs(result : DB::ResultSet, t : UInt16.class) : UInt16 #

Converts a DB::ResultSet to UInt16.


[View source]
def from_rs(result : DB::ResultSet, t : (UInt16 | ::Nil).class) : UInt16 | Nil #

Converts a DB::ResultSet to UInt16?.


[View source]
def from_rs(result : DB::ResultSet, t : Array(UInt16).class) : Array(UInt16) #

Converts an DB::ResultSet to Array(UInt16).


[View source]
def from_rs(result : DB::ResultSet, t : (Array(UInt16) | ::Nil).class) : Array(UInt16) | Nil #

Converts an DB::ResultSet to Array(UInt16)?.


[View source]
def from_rs(result : DB::ResultSet, t : UInt32.class) : UInt32 #

Converts a DB::ResultSet to UInt32.


[View source]
def from_rs(result : DB::ResultSet, t : (UInt32 | ::Nil).class) : UInt32 | Nil #

Converts a DB::ResultSet to UInt32?.


[View source]
def from_rs(result : DB::ResultSet, t : Array(UInt32).class) : Array(UInt32) #

Converts an DB::ResultSet to Array(UInt32).


[View source]
def from_rs(result : DB::ResultSet, t : (Array(UInt32) | ::Nil).class) : Array(UInt32) | Nil #

Converts an DB::ResultSet to Array(UInt32)?.


[View source]
def from_rs(result : DB::ResultSet, t : UInt64.class) : UInt64 #

Converts a DB::ResultSet to UInt64.


[View source]
def from_rs(result : DB::ResultSet, t : (UInt64 | ::Nil).class) : UInt64 | Nil #

Converts a DB::ResultSet to UInt64?.


[View source]
def from_rs(result : DB::ResultSet, t : Array(UInt64).class) : Array(UInt64) #

Converts an DB::ResultSet to Array(UInt64).


[View source]
def from_rs(result : DB::ResultSet, t : (Array(UInt64) | ::Nil).class) : Array(UInt64) | Nil #

Converts an DB::ResultSet to Array(UInt64)?.


[View source]
def from_rs(result : DB::ResultSet, t : Float32.class) : Float32 #

Converts a DB::ResultSet to Float32.


[View source]
def from_rs(result : DB::ResultSet, t : (Float32 | ::Nil).class) : Float32 | Nil #

Converts a DB::ResultSet to Float32?.


[View source]
def from_rs(result : DB::ResultSet, t : Array(Float32).class) : Array(Float32) #

Converts an DB::ResultSet to Array(Float32).


[View source]
def from_rs(result : DB::ResultSet, t : (Array(Float32) | ::Nil).class) : Array(Float32) | Nil #

Converts an DB::ResultSet to Array(Float32)?.


[View source]
def from_rs(result : DB::ResultSet, t : Float64.class) : Float64 #

Converts a DB::ResultSet to Float64.


[View source]
def from_rs(result : DB::ResultSet, t : (Float64 | ::Nil).class) : Float64 | Nil #

Converts a DB::ResultSet to Float64?.


[View source]
def from_rs(result : DB::ResultSet, t : Array(Float64).class) : Array(Float64) #

Converts an DB::ResultSet to Array(Float64).


[View source]
def from_rs(result : DB::ResultSet, t : (Array(Float64) | ::Nil).class) : Array(Float64) | Nil #

Converts an DB::ResultSet to Array(Float64)?.


[View source]
def from_rs(result : DB::ResultSet, t : Bool.class) : Bool #

Converts a DB::ResultSet to Bool.


[View source]
def from_rs(result : DB::ResultSet, t : (Bool | ::Nil).class) : Bool | Nil #

Converts a DB::ResultSet to Bool?.


[View source]
def from_rs(result : DB::ResultSet, t : Array(Bool).class) : Array(Bool) #

Converts an DB::ResultSet to Array(Bool).


[View source]
def from_rs(result : DB::ResultSet, t : (Array(Bool) | ::Nil).class) : Array(Bool) | Nil #

Converts an DB::ResultSet to Array(Bool)?.


[View source]
def from_rs(result : DB::ResultSet, t : String.class) : String #

Converts a DB::ResultSet to String.


[View source]
def from_rs(result : DB::ResultSet, t : (String | ::Nil).class) : String | Nil #

Converts a DB::ResultSet to String?.


[View source]
def from_rs(result : DB::ResultSet, t : Array(String).class) : Array(String) #

Converts an DB::ResultSet to Array(String).


[View source]
def from_rs(result : DB::ResultSet, t : (Array(String) | ::Nil).class) : Array(String) | Nil #

Converts an DB::ResultSet to Array(String)?.


[View source]
def from_rs(result : DB::ResultSet, t : Time.class) : Time #

Converts a DB::ResultSet to Time.


[View source]
def from_rs(result : DB::ResultSet, t : (Time | ::Nil).class) : Time | Nil #

Converts a DB::ResultSet to Time?


[View source]