tlx/dynamodb/table.py
def full_scan(table, **table_scan_params):
    """ Paginates fully over the table resource scan method wich is not natively pagable.
        Although the client scan method is pagable using with the generic paginator in tlx,
        it won't accept the FilterExpression from `boto3.dynamodb.conditions` (`Key, Attr`)

        This method takes normal table scan parameters and returns the complete list.

        e.g
            >>> from boto3.dynamodb.conditions import Key, Attr
            >>> table_scan_params = dict(
            ...     # IndexName='User_Latest_Predictions2',
            ...     # ProjectionExpression='itemId',
            ...     FilterExpression=Attr('userId').eq(USERID),
            ... )
            >>> items = tlx.dynamodb.table.full_scan(table_name, **table_scan_params)

    """

    table = get_ddb_table(table)

    items = []
    scan_incomplete = True
    while scan_incomplete:
        res = table.scan(**table_scan_params)
        items.extend(res['Items'])
        try:
            table_scan_params['ExclusiveStartKey'] = res['LastEvaluatedKey']
        except KeyError:  # Last item
            scan_incomplete = False
    return items
 Paginates fully over the table resource scan method wich is not natively pagable.
        Although the client scan method is pagable using with the generic paginator in tlx,
        it won't accept the FilterExpression from `boto3.dynamodb.conditions` (`Key, Attr`)

        This method takes normal table scan parameters and returns the complete list.

        e.g
            >>> from boto3.dynamodb.conditions import Key, Attr
            >>> table_scan_params = dict(
            ...     # IndexName='User_Latest_Predictions2',
            ...     # ProjectionExpression='itemId',
            ...     FilterExpression=Attr('userId').eq(USERID),
            ... )
            >>> items = tlx.dynamodb.table.full_scan(table_name, **table_scan_params)

    
Paginates fully over the table resource scan method wich is not natively pagable.
Although the client scan method is pagable using with the generic paginator in tlx,
it won't accept the FilterExpression from `boto3.dynamodb.conditions` (`Key, Attr`)

This method takes normal table scan parameters and returns the complete list.


Paginates fully over the table resource scan method wich is not natively pagable . Although the client scan method is pagable using with the generic paginator in tlx it won ' t accept the FilterExpression from ` boto3 . dynamodb . conditions ` ( ` Key Attr ` ) This method takes normal table scan parameters and returns the complete list .
def full_scan(table, **table_scan_params):
    table = get_ddb_table(table)
    items = []
    scan_incomplete = True
    while scan_incomplete:
        res = table.scan(**table_scan_params)
        items.extend(res['Items'])
        try:
            table_scan_params['ExclusiveStartKey'] = res['LastEvaluatedKey']
        except KeyError:  
            scan_incomplete = False
    return items
def full_scan ( table , ** table_scan_params ) : table = get_ddb_table ( table ) items = [ ] scan_incomplete = True while scan_incomplete : res = table . scan ( ** table_scan_params ) items . extend ( res [ 'Items' ] ) try : table_scan_params [ 'ExclusiveStartKey' ] = res [ 'LastEvaluatedKey' ] except KeyError : scan_incomplete = False return items
Paginates fully over the table resource scan method wich is not natively pagable.
Paginates fully over the table resource scan method wich is not natively pagable .
""" Paginates fully over the table resource scan method wich is not natively pagable.
        Although the client scan method is pagable using with the generic paginator in tlx,
        it won't accept the FilterExpression from `boto3.dynamodb.conditions` (`Key, Attr`)

        This method takes normal table scan parameters and returns the complete list.

        e.g
            >>> from boto3.dynamodb.conditions import Key, Attr
            >>> table_scan_params = dict(
            ...     # IndexName='User_Latest_Predictions2',
            ...     # ProjectionExpression='itemId',
            ...     FilterExpression=Attr('userId').eq(USERID),
            ... )
            >>> items = tlx.dynamodb.table.full_scan(table_name, **table_scan_params)

    """ # Last item
table