@@ -352,16 +352,17 @@ def _unwrap_optionality(column):
352
352
353
353
354
354
class _ResultSet (object ):
355
- __slots__ = ("columns" , "rows" , "truncated" , "snapshot" )
355
+ __slots__ = ("columns" , "rows" , "truncated" , "snapshot" , "index" )
356
356
357
- def __init__ (self , columns , rows , truncated , snapshot = None ):
357
+ def __init__ (self , columns , rows , truncated , snapshot = None , index = None ):
358
358
self .columns = columns
359
359
self .rows = rows
360
360
self .truncated = truncated
361
361
self .snapshot = snapshot
362
+ self .index = index
362
363
363
364
@classmethod
364
- def from_message (cls , message , table_client_settings = None , snapshot = None ):
365
+ def from_message (cls , message , table_client_settings = None , snapshot = None , index = None ):
365
366
rows = []
366
367
# prepare column parsers before actuall parsing
367
368
column_parsers = []
@@ -384,7 +385,7 @@ def from_message(cls, message, table_client_settings=None, snapshot=None):
384
385
column_parser , unwrapped_type = column_info
385
386
row [column .name ] = column_parser (unwrapped_type , value , table_client_settings )
386
387
rows .append (row )
387
- return cls (message .columns , rows , message .truncated , snapshot )
388
+ return cls (message .columns , rows , message .truncated , snapshot , index )
388
389
389
390
@classmethod
390
391
def lazy_from_message (cls , message , table_client_settings = None , snapshot = None ):
0 commit comments