Categorygithub.com/miyamo2/sqldav
modulepackage
0.2.1
Repository: https://github.com/miyamo2/sqldav.git
Documentation: pkg.go.dev

# README

sqldav

Go Reference GitHub go.mod Go version (subdirectory of monorepo) GitHub release (latest by date) codecov Go Report Card GitHub License

"sql.Scanner"/"driver.Valuer" for DynamoDB PartiQL (And its Tooltip)

Types

sqldav implements the following sql.Scanner, driver.Valuer

  • sqldav.Set[string | int | float64 | []byte], the Defined Type of []string, []int, []float64, [][]byte. Converted to set in DynamoDB.

  • sqldav.List, the Defined Type of []interface{}. Converted to list in DynamoDB.

  • sqldav.Map, the Defined Type of map[string]interface{}. Converted to map in DynamoDB.

  • sqldav.TypedList[T], the Defined Type of []T. Converted to list in DynamoDB.

Contributing

Feel free to open a PR or an Issue.

However, you must promise to follow our Code of Conduct.

License

sqldav released under the MIT License

# Functions

AssignMapValueToReflectValue assigns the map type value to the reflect.Value.
ToDocumentAttributeValue converts given interface to a DocumentAttributeMember.

# Variables

No description provided by the author
ErrDocumentAttributeValueIsIncompatible occurs when an incompatible conversion to following: - *types.AttributeValueMemberL - *types.AttributeValueMemberM - *types.AttributeValueMemberSS - *types.AttributeValueMemberNS - *types.AttributeValueMemberBS.
No description provided by the author
ErrNestedStructHasIncompatibleAttributes occurs when the nested struct has incompatible attributes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

DocumentAttributeMember represents Document Attribute Member.
SetSupportable are the types that support the Set.

# Type aliases

List is a DynamoDB list type.
Map is a DynamoDB map type.
Set is a DynamoDB set type.
TypedList is a DynamoDB list type with type specification.