Documentation
¶
Overview ¶
Package dynamodb provides convenience methods for working with aws-sdk-go/service/dynamodb instances.
Index ¶
- func CreateTables(ctx context.Context, client *aws_dynamodb.Client, opts *CreateTablesOptions) error
- func HasTable(ctx context.Context, client *aws_dynamodb.Client, table_name string) (bool, error)
- func ListTables(ctx context.Context, client *aws_dynamodb.Client) ([]string, error)
- func NewClientWithURI(ctx context.Context, uri string) (*aws_dynamodb.Client, error)
- type CreateTablesOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTables ¶
func CreateTables(ctx context.Context, client *aws_dynamodb.Client, opts *CreateTablesOptions) error
Create one or more tables associated with the dynamodb.DynamoDB instance.
func HasTable ¶
Return a boolean value indication whether or not the dynamodb.DynamoDB instances contains a table matching table_name.
func ListTables ¶
Return the list of table names associated with the dynamodb.DynamoDB instance.
func NewClientWithURI ¶ added in v0.0.3
Types ¶
type CreateTablesOptions ¶
type CreateTablesOptions struct { // A hash map containing table names and their dynamodb.CreateTableInput defintions Tables map[string]*aws_dynamodb.CreateTableInput // If true and the table already exists, delete and recreate the table Refresh bool }
CreateTablesOptions defines options for the CreateTables method
Click to show internal directories.
Click to hide internal directories.