module Granite::Converters::Uuid(T)

Overview

Converts a UUID to/from a database column of type T.

Valid types for T include: String, and Bytes.

Extended Modules

Defined in:

granite/converters.cr

Instance Method Summary

Instance Method Detail

def from_rs(result : DB::ResultSet) : UUID | Nil #

[View source]
def to_db(value : UUID | Nil) : Granite::Columns::Type #

[View source]