module

Granite::Converters::Enum(E, T)

Converts an Enum of type E to/from a database column of type T.

Valid types for T include: Number, String, and Bytes.

Instance methods

from_rs(result : DB::ResultSet) : E | Nil
Source
to_db(value : E | Nil) : Granite::Columns::Type
Source