S.FieldSourceThis module defines a database field retrieved by a query.
The type of fields.
null_value field returns true if the value associated with field is NULL.
can_be_null field returns true if values of field can assume the NULL value (i.e. the table definition does not specify NOT NULL for this field.
The functions below simplify the unwrapping of OCaml values from fields. They raise Failure if the field is not of the expected type, but this should not be a problem as the type of a field is in all likelyhood known in advance by database users.