The following table describes the supported xBase data types and their mapping to the Python data types. The type codes returned in the description
cursor attribute can be used in the addtypecast()
cursor method.
xBase data type | Type code | Python data type |
---|---|---|
INTEGER |
510 |
int |
FLOAT |
508 |
float |
DOUBLE |
509 |
float |
CHAR |
501 |
str |
VARCHAR |
513 |
str |
MEMO |
502 |
str |
DATE |
504 |
datetime.date |
TIME |
505 |
datetime.datetime |