|
Python Connector for Salesforce Data types - Python Connector for Salesforce |
|
The following table describes the supported Salesforce 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.
| Salesforce data type | Type code | Python data type |
|---|---|---|
|
BINARY |
3002 |
binary |
|
CHECKBOX |
3004 |
bool |
|
BOOLEAN |
3004 |
bool |
|
DATE |
3006 |
datetime.date |
|
DATETIME |
3007 |
datetime.datetime |
|
TIME |
3018 |
datetime.time |
|
CURRENCY |
3005 |
float |
|
NUMBER |
3009 |
float |
|
PERCENT |
3009 |
float |
|
DOUBLE |
3009 |
float |
|
INT |
3012 |
int |
|
LONG |
3021 |
int |
|
ANYTYPE |
3017 |
str |
|
AUTONUMBER |
3017 |
str |
|
COMBOBOX |
3017 |
str |
|
|
3017 |
str |
|
HTML |
3017 |
str |
|
ID |
3017 |
str |
|
LONGTEXTAREA |
3017 |
str |
|
MULTISELECTPICKLIST |
3017 |
str |
|
PHONE |
3017 |
str |
|
PICKLIST |
3017 |
str |
|
REFERENCE |
3017 |
str |
|
TEXT |
3017 |
str |
|
TEXTAREA |
3017 |
str |
|
URL |
3017 |
str |
|
STRING |
3017 |
str |