Part of vmc.contrib.axiom.attributes View In Hierarchy
From the SQLite documentation:
'Each value stored in an SQLite database (or manipulated by the
database engine) has one of the following storage classes: (...)
REAL. The value is a floating point value, stored as an 8-byte IEEE
floating point number.'
This attribute type implements IEEE754 double-precision binary
floating-point storage. Some people call this 'float', and think it is
somehow related to numbers. This assumption can be misleading when working
with certain types of data.
This attribute name has an unweildy name on purpose. You should be aware
of the caveats related to binary floating point math before using this
type. It is particularly ill-advised to use it to store values
representing large amounts of currency as rounding errors may be
significant enough to introduce accounting discrepancies.
Certain edge-cases are not handled properly. For example, INF and NAN are
considered by SQLite to be equal to everything, rather than the Python
interpretation where INF is equal only to itself and greater than
everything, and NAN is equal to nothing, not even itself.
| Method | infilter | used to convert a Python value to something that lives in the database; |
| Method | outfilter | used to convert an SQL value to something that lives in memory; so |
Inherited from SQLAttribute:
| Method | __init__ | Undocumented |
| Method | computeDefault | Undocumented |
| Method | reprFor | Undocumented |
| Method | getShortColumnName | |
| Method | getColumnName | |
| Method | prepareInsert | Override this method to do something to an item to prepare for its |
| Method | coercer | must return a value equivalent to the data being passed in for it to be |
| Method | requiredSlots | Undocumented |
| Method | fullyQualifiedName | |
| Method | __repr__ | Undocumented |
| Method | type | Undocumented |
| Method | __get__ | |
| Method | loaded | Undocumented |
| Method | _convertPyval | Convert a Python value to a value suitable for inserting into the database. |
| Method | __set__ | Undocumented |
Inherited from Comparable (via SQLAttribute):
| Method | compare | Override this in a subclass. |
Inherited from _ContainableMixin (via SQLAttribute, Comparable):
| Method | oneOf | Choose items whose attributes are in a fixed set. |
| Method | notOneOf | Undocumented |
Inherited from _ComparisonOperatorMuxer (via SQLAttribute, Comparable):
| Method | __eq__ | Undocumented |
| Method | __ne__ | Undocumented |
| Method | __gt__ | Undocumented |
| Method | __lt__ | Undocumented |
| Method | __ge__ | Undocumented |
| Method | __le__ | Undocumented |
Inherited from _MatchingOperationMuxer (via SQLAttribute, Comparable):
| Method | _like | Undocumented |
| Method | like | Undocumented |
| Method | notLike | Undocumented |
| Method | startswith | Undocumented |
| Method | endswith | Undocumented |
Inherited from _OrderingMixin (via SQLAttribute, Comparable):
| Method | _asc | Undocumented |
| Method | _desc | Undocumented |