Database Reference
In-Depth Information
ListTables
The following code lists not more than three tables whose names begin with or alphabetic-
ally come after
Tbl_Book
. For example, if we have three tables in our DynamoDB,
namely,
Tbl_Book
,
Tbl_Library
, and
Table_One
, the following request will return
only
Tbl_Book
and
Tbl_Library
. The reason why
Table_One
will not be returned
is that if we sort the three tables based on alphabetical order of their names,
Table_One
will take first place,
Tbl_Book
will take second place, and
Tbl_Library
will take
third place. Here we are performing the list operation with
ExclusiveStartT-
ableName
as
Tbl_Book
.
Because of the fact that alphabetically
Table_One
comes prior to
Tbl_Book
, it is not
returned.
{
"ExclusiveStartTableName": "Tbl_Book","Limit": 3
}
We have only two tables in our account. So, the response will have only two table names in
the array, as follows:
{
"LastEvaluatedTableName": "Tbl_Library",
"TableNames": ["Tbl_Book","Tbl_Library"]
}