Previous: Selected Notes About Some Types, Up: Types Conversion
To define a new non-array type means associating with the type name a
procedure for converting from a PostgreSQL string representation to a Scheme
object (the objectifier), a procedure to do the conversion in the
opposite direction (the stringifier), and a default string to use if
none is specified (for example, during an INSERT
operation). For this,
use the define-db-col-type
procedure.
[NOTE: docs missing for define-db-col-type]
To express conversion of arrays (no matter the dimensionality) of non-array
types, use the define-db-col-type-array-variant
procedure.
[NOTE: docs missing for define-db-col-type-array-variant]