Documentation ¶
Index ¶
- func NewPerson_ExpressionBuilder() dynexpr.DDBItemExpressionBuilder[*Person_ExpressionBuilder]
- type BankAccount
- type BankAccountType
- type BankAccount_ExpressionBuilder
- type BankDetails
- type BankDetails_ExpressionBuilder
- type Child
- type Child_ExpressionBuilder
- type FamilyDetail
- type FamilyDetail_ExpressionBuilder
- type Person
- type Person_ExpressionBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPerson_ExpressionBuilder ¶
func NewPerson_ExpressionBuilder() dynexpr.DDBItemExpressionBuilder[*Person_ExpressionBuilder]
Types ¶
type BankAccount ¶
type BankAccount struct { BankAccountNumber *int `json:"bank_account_number,omitempty" dynamodbav:"bank_account_number,omitempty"` AccountType *BankAccountType `json:"account_type,omitempty" dynamodbav:"account_type,omitempty"` }
type BankAccount_ExpressionBuilder ¶
type BankAccount_ExpressionBuilder struct { BankAccountNumber dynexpr.DynamoAttribute[*int] AccountType dynexpr.DynamoAttribute[*BankAccountType] }
func (*BankAccount_ExpressionBuilder) BuildTree ¶
func (o *BankAccount_ExpressionBuilder) BuildTree(name string) *dynexpr.DynamoAttribute[*BankAccount_ExpressionBuilder]
type BankDetails ¶
type BankDetails struct {
Accounts *[]*BankAccount `json:"accounts,omitempty" dynamodbav:"accounts,numberset,omitempty,omitemptyelem"` // This will be a set in DDB
}
type BankDetails_ExpressionBuilder ¶
type BankDetails_ExpressionBuilder struct {
Accounts dynexpr.DynamoListAttribute[*BankAccount_ExpressionBuilder]
}
func (*BankDetails_ExpressionBuilder) BuildTree ¶
func (o *BankDetails_ExpressionBuilder) BuildTree(name string) *dynexpr.DynamoAttribute[*BankDetails_ExpressionBuilder]
type Child_ExpressionBuilder ¶
type Child_ExpressionBuilder struct { Name dynexpr.DynamoAttribute[*string] DOB dynexpr.DynamoAttribute[*time.Time] }
func (*Child_ExpressionBuilder) BuildTree ¶
func (o *Child_ExpressionBuilder) BuildTree(name string) *dynexpr.DynamoAttribute[*Child_ExpressionBuilder]
type FamilyDetail ¶
type FamilyDetail_ExpressionBuilder ¶
type FamilyDetail_ExpressionBuilder struct { Children dynexpr.DynamoListAttribute[*Child_ExpressionBuilder] IsMarried dynexpr.DynamoAttribute[*bool] }
func (*FamilyDetail_ExpressionBuilder) BuildTree ¶
func (o *FamilyDetail_ExpressionBuilder) BuildTree(name string) *dynexpr.DynamoAttribute[*FamilyDetail_ExpressionBuilder]
type Person ¶
type Person struct { PK *string `json:"pk,omitempty" dynamodbav:"pk,omitempty" dynexpr:"partitionKey"` SK *string `json:"sk,omitempty" dynamodbav:"sk,omitempty" dynexpr:"sortKey"` Name *string `json:"name,omitempty" dynamodbav:"name,omitempty"` BankDetails *BankDetails `json:"bank_details,omitempty" dynamodbav:"bank_details,omitempty"` FamilyDetails *FamilyDetail `json:"family_details,omitempty" dynamodbav:"family_details,omitempty"` PhoneNos *[]*string `json:"phone_nos,omitempty" dynamodbav:"phone_nos,omitempty,omitemptyelem"` // This will be a list }
dynexpr:generate
type Person_ExpressionBuilder ¶
type Person_ExpressionBuilder struct { PK dynexpr.DynamoKeyAttribute[*string] SK dynexpr.DynamoKeyAttribute[*string] Name dynexpr.DynamoAttribute[*string] BankDetails dynexpr.DynamoAttribute[*BankDetails_ExpressionBuilder] FamilyDetails dynexpr.DynamoAttribute[*FamilyDetail_ExpressionBuilder] PhoneNos dynexpr.DynamoListAttribute[*string] }
func (*Person_ExpressionBuilder) BuildTree ¶
func (o *Person_ExpressionBuilder) BuildTree(name string) *dynexpr.DynamoAttribute[*Person_ExpressionBuilder]
Click to show internal directories.
Click to hide internal directories.