Added constants.FIELD_TYPE

This commit is contained in:
Georg Richter
2020-09-15 12:34:37 +02:00
parent 4989ed0956
commit 51810b79f2
2 changed files with 40 additions and 1 deletions

View 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

View File

@ -1 +1 @@
__all__ = ["CLIENT", "INDICATOR", "CURSOR"]
__all__ = ["CLIENT", "INDICATOR", "CURSOR", "FIELD_TYPE"]