class SQLite3::Translator
def add_translator( type, &block ) # :yields: type, value
The block should return the translated value.
is the (string) data to convert.
type is translated based on the additional data. The "value" parameter
parentheses), so the block itself may include logic for changing how a
"value". In this case, the "type" is the full type name (including
The translator block itself should accept two parameters, "type" and
are made solely on the "base" type name.
information is stripped off and discarded, so type translation decisions
may include parentheses (i.e., "VARCHAR(30)"). However, any parenthetical
translations to the given type. The type should be an SQL datatype, and
Add a new translator block, which will be invoked to process type
def add_translator( type, &block ) # :yields: type, value warn(<<-eowarn) if $VERBOSE ller[0]} is calling `add_translator`. t in translators are deprecated and will be removed in version 2.0.0 eowarn @translators[ type_name( type ) ] = block end