Documentation ¶
Index ¶
- type DynamoDB
- func (db *DynamoDB) Close() error
- func (db *DynamoDB) Configure(env *goboot.AppEnv) error
- func (db *DynamoDB) CreateTable(ctx context.Context, tableInput *dynamodb.CreateTableInput) error
- func (db *DynamoDB) CreateTableIfNotExists(ctx context.Context, tableInput *dynamodb.CreateTableInput) error
- func (db *DynamoDB) Init() error
- func (db *DynamoDB) Migrate(ctx context.Context) error
- func (db *DynamoDB) Name() string
- func (db *DynamoDB) TableExists(ctx context.Context, tableName string) (bool, error)
- type DynamodbConfig
- type Migration
- type MigrationRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamoDB ¶
type DynamoDB struct { MigrationsTable string Migrations []*Migration Client *dynamodb.Client Config *DynamodbConfig // contains filtered or unexported fields }
func (*DynamoDB) CreateTable ¶
CreateTable creates a table and waits until it is ready.
func (*DynamoDB) CreateTableIfNotExists ¶
func (db *DynamoDB) CreateTableIfNotExists(ctx context.Context, tableInput *dynamodb.CreateTableInput) error
CreateTableIfNotExists creates a table if it does not exist and waits until it is ready.
type DynamodbConfig ¶
type MigrationRecord ¶
Click to show internal directories.
Click to hide internal directories.