mirror of
https://github.com/mariadb-corporation/mariadb-connector-python.git
synced 2025-08-14 08:56:00 +00:00
Added constants.FIELD_TYPE
This commit is contained in:
39
mariadb/constants/FIELD_TYPE.py
Normal file
39
mariadb/constants/FIELD_TYPE.py
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
"""MariaDB FIELD_TYPE Constants
|
||||||
|
|
||||||
|
These constants represent the various field types that are
|
||||||
|
supported by MariaDB.
|
||||||
|
"""
|
||||||
|
|
||||||
|
# Source: mariadb_com.h (MariaDB Connector(C)
|
||||||
|
|
||||||
|
DECIMAL = 0
|
||||||
|
TINY = 1
|
||||||
|
SHORT = 2
|
||||||
|
LONG = 3
|
||||||
|
FLOAT = 4
|
||||||
|
DOUBLE = 5
|
||||||
|
NULL = 6
|
||||||
|
TIMESTAMP = 7
|
||||||
|
LONGLONG = 8
|
||||||
|
INT24 = 9
|
||||||
|
DATE = 10
|
||||||
|
TIME = 11
|
||||||
|
DATETIME = 12
|
||||||
|
YEAR = 13
|
||||||
|
NEWDATE = 14
|
||||||
|
VARCHAR = 15
|
||||||
|
BIT = 16
|
||||||
|
TIMESTAMP2 = 17
|
||||||
|
DATETIME2 = 18
|
||||||
|
TIME2 = 19
|
||||||
|
JSON = 245
|
||||||
|
NEWDECIMAL = 246
|
||||||
|
ENUM = 247
|
||||||
|
SET = 248
|
||||||
|
TINY_BLOB = 249
|
||||||
|
MEDIUM_BLOB = 250
|
||||||
|
LONG_BLOB = 251
|
||||||
|
BLOB = 252
|
||||||
|
VAR_STRING =253
|
||||||
|
STRING =254
|
||||||
|
GEOMETRY =255
|
@ -1 +1 @@
|
|||||||
__all__ = ["CLIENT", "INDICATOR", "CURSOR"]
|
__all__ = ["CLIENT", "INDICATOR", "CURSOR", "FIELD_TYPE"]
|
||||||
|
Reference in New Issue
Block a user