The Translator class encapsulates the logic and callbacks necessary for converting string data to a value of some specified type. Every Database instance may have a Translator instance, in order to assist in type translation (Database#type_translation).

Further, applications may define their own custom type translation logic by registering translator blocks with the corresponding database’s translator instance (Database#translator).

Methods