protoc-gen-dynamodb

command module
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: MIT Imports: 9 Imported by: 0

README

protoc-gen-dynamodb

Checks Test

Use Protobuf to define DynamoDB item encoding using Go (golang).

features

  • Uses sdk v2
  • Unit and e2e testing
  • Type-safe expression path building
  • Generate table definitions
  • use official 'attributevalue'
  • Wide(r) range of types support: everything in the canonical json table
    • Including maps with all basic types, including bool as keys
  • Allow messages external to the package to be usable as field messages without problem
  • Uses field position numbers by default instead of names (since they are supposed to be stable)
  • Support well-knowns, but are generated to maps with strings for their fields, instead of field numbers
    • Document "Any" format in particular: "Value" stored always stored as binary
    • Document "FieldMask" format: "StringSet"
    • Structpb.Value is formatted in dynamodb
  • Does no logic to support formatting pk/sk, instead supports the use code to do this
  • Support of embedding fields as json

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
ddb
Package ddb provides DynamoDB utility for Protobuf messages
Package ddb provides DynamoDB utility for Protobuf messages
ddbpath
Package ddbpath provides logic for building and parsing Dynamo document paths
Package ddbpath provides logic for building and parsing Dynamo document paths
internal
generator
Package generator implements the code generator
Package generator implements the code generator
proto
ddb/v1
Package ddbv1 holds generated Go code
Package ddbv1 holds generated Go code
ddb/v1/ddbpath
Package ddbv1ddbpath holds generated code for working with Dynamo document paths
Package ddbv1ddbpath holds generated code for working with Dynamo document paths
example/message/v1
Package messagev1 hold generated Go code
Package messagev1 hold generated Go code
example/message/v1/ddbpath
Package messagev1ddbpath holds generated code for working with Dynamo document paths
Package messagev1ddbpath holds generated code for working with Dynamo document paths

Jump to

Keyboard shortcuts

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