DynamoDB class
Amazon DynamoDB is a fast, highly scalable, highly available, cost-effective non-relational database service.
Amazon DynamoDB removes traditional scalability limitations on data storage while maintaining low latency and predictable performance.
Constructors
- DynamoDB({required String region, AwsClientCredentials? credentials, AwsClientCredentialsProvider? credentialsProvider, Client? client, String? endpointUrl})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
batchGetItem(
{required Map< String, KeysAndAttributes> requestItems}) → Future<BatchGetItemOutput> - Retrieves the attributes for multiple items from multiple tables using their primary keys.
-
batchWriteItem(
{required Map< String, List< requestItems}) → Future<WriteRequest> >BatchWriteItemOutput> - Allows to execute a batch of Put and/or Delete Requests for many tables in a single call. A total of 25 requests are allowed.
-
close(
) → void - Closes the internal HTTP client if none was provided at creation. If a client was passed as a constructor argument, this becomes a noop.
-
createTable(
{required KeySchema keySchema, required ProvisionedThroughput provisionedThroughput, required String tableName}) → Future< CreateTableOutput> - Adds a new table to your account.
-
deleteItem(
{required Key key, required String tableName, Map< String, ExpectedAttributeValue> ? expected, ReturnValue? returnValues}) → Future<DeleteItemOutput> - Deletes a single item in a table by primary key.
-
deleteTable(
{required String tableName}) → Future< DeleteTableOutput> - Deletes a table and all of its items.
-
describeTable(
{required String tableName}) → Future< DescribeTableOutput> - Retrieves information about the table, including the current status of the table, the primary key schema and when the table was created.
-
getItem(
{required Key key, required String tableName, List< String> ? attributesToGet, bool? consistentRead}) → Future<GetItemOutput> - Retrieves a set of Attributes for an item that matches the primary key.
-
listTables(
{String? exclusiveStartTableName, int? limit}) → Future< ListTablesOutput> -
Retrieves a paginated list of table names created by the AWS Account of
the caller in the AWS Region (e.g.
us-east-1
). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putItem(
{required Map< String, AttributeValue> item, required String tableName, Map<String, ExpectedAttributeValue> ? expected, ReturnValue? returnValues}) → Future<PutItemOutput> - Creates a new item, or replaces an old item with a new item (including all the attributes).
-
query(
{required AttributeValue hashKeyValue, required String tableName, List< String> ? attributesToGet, bool? consistentRead, bool? count, Key? exclusiveStartKey, int? limit, Condition? rangeKeyCondition, bool? scanIndexForward}) → Future<QueryOutput> - Gets the values of one or more items and its attributes by primary key (composite primary key, only).
-
scan(
{required String tableName, List< String> ? attributesToGet, bool? count, Key? exclusiveStartKey, int? limit, Map<String, Condition> ? scanFilter}) → Future<ScanOutput> - Retrieves one or more items and its attributes by performing a full scan of a table.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateItem(
{required Map< String, AttributeValueUpdate> attributeUpdates, required Key key, required String tableName, Map<String, ExpectedAttributeValue> ? expected, ReturnValue? returnValues}) → Future<UpdateItemOutput> - Edits an existing item's attributes.
-
updateTable(
{required ProvisionedThroughput provisionedThroughput, required String tableName}) → Future< UpdateTableOutput> - Updates the provisioned throughput for the given table.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited