Documentation ¶
Overview ¶
Package dynamodb provides convenience methods for working with aws-sdk-go/service/dynamodb instances.
Index ¶
- func CreateTables(client *aws_dynamodb.DynamoDB, opts *CreateTablesOptions) error
- func HasTable(client *aws_dynamodb.DynamoDB, table_name string) (bool, error)
- func ListTables(client *aws_dynamodb.DynamoDB) ([]string, error)
- func NewClientWithURI(ctx context.Context, uri string) (*aws_dynamodb.DynamoDB, error)
- func NewSessionWithURI(ctx context.Context, uri string) (*aws_session.Session, error)
- type CreateTablesOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTables ¶
func CreateTables(client *aws_dynamodb.DynamoDB, opts *CreateTablesOptions) error
Create one or more tables associated with the dynamodb.DynamoDB instance.
func HasTable ¶
func HasTable(client *aws_dynamodb.DynamoDB, table_name string) (bool, error)
Return a boolean value indication whether or not the dynamodb.DynamoDB instances contains a table matching table_name.
func ListTables ¶
func ListTables(client *aws_dynamodb.DynamoDB) ([]string, error)
Return the list of table names associated with the dynamodb.DynamoDB instance.
func NewClientWithURI ¶ added in v0.0.3
func NewSessionWithURI ¶ added in v0.0.5
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.