dynamodb

package module
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2024 License: BSD-3-Clause Imports: 11 Imported by: 8

README

go-aws-dynamodb

Go package providing convenience methods for working with aws-sdk-go/service/dynamodb instances.

Documentation

Go Reference

Documentation is incomplete.

Documentation

Overview

Package dynamodb provides convenience methods for working with aws-sdk-go/service/dynamodb instances.

Index

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 NewClientWithURI(ctx context.Context, uri string) (*aws_dynamodb.DynamoDB, error)

func NewSessionWithURI added in v0.0.5

func NewSessionWithURI(ctx context.Context, uri string) (*aws_session.Session, error)

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

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL