Add DurationType in type_codes
This commit is contained in:
@@ -38,7 +38,7 @@ from cassandra.cqltypes import (AsciiType, BytesType, BooleanType,
|
|||||||
LongType, MapType, SetType, TimeUUIDType,
|
LongType, MapType, SetType, TimeUUIDType,
|
||||||
UTF8Type, VarcharType, UUIDType, UserType,
|
UTF8Type, VarcharType, UUIDType, UserType,
|
||||||
TupleType, lookup_casstype, SimpleDateType,
|
TupleType, lookup_casstype, SimpleDateType,
|
||||||
TimeType, ByteType, ShortType)
|
TimeType, ByteType, ShortType, DurationType)
|
||||||
from cassandra.policies import WriteType
|
from cassandra.policies import WriteType
|
||||||
from cassandra.cython_deps import HAVE_CYTHON, HAVE_NUMPY
|
from cassandra.cython_deps import HAVE_CYTHON, HAVE_NUMPY
|
||||||
from cassandra import util
|
from cassandra import util
|
||||||
|
@@ -25,6 +25,11 @@ Type codes are repeated here from the Cassandra binary protocol specification:
|
|||||||
0x000E Varint
|
0x000E Varint
|
||||||
0x000F Timeuuid
|
0x000F Timeuuid
|
||||||
0x0010 Inet
|
0x0010 Inet
|
||||||
|
0x0011 SimpleDateType
|
||||||
|
0x0012 TimeType
|
||||||
|
0x0013 ShortType
|
||||||
|
0x0014 ByteType
|
||||||
|
0x0015 DurationType
|
||||||
0x0020 List: the value is an [option], representing the type
|
0x0020 List: the value is an [option], representing the type
|
||||||
of the elements of the list.
|
of the elements of the list.
|
||||||
0x0021 Map: the value is two [option], representing the types of the
|
0x0021 Map: the value is two [option], representing the types of the
|
||||||
@@ -54,6 +59,7 @@ SimpleDateType = 0x0011
|
|||||||
TimeType = 0x0012
|
TimeType = 0x0012
|
||||||
ShortType = 0x0013
|
ShortType = 0x0013
|
||||||
ByteType = 0x0014
|
ByteType = 0x0014
|
||||||
|
DurationType = 0x0015
|
||||||
ListType = 0x0020
|
ListType = 0x0020
|
||||||
MapType = 0x0021
|
MapType = 0x0021
|
||||||
SetType = 0x0022
|
SetType = 0x0022
|
||||||
|
Reference in New Issue
Block a user