// Table Update on conditional updating
// This will only add 1 to attribute "count" if "count" = 0 or it does not exists
Table Update on conditional updating
This will only add 1 to attribute "count" if "count" = 0 or it does not exists
// Table Update on conditional updating // This will only add 1 to attribute " count " if " count " = 0 or it does not exists
func ExampleTable_Update_conditional() {
	db := dynamo.New(session.New(), &aws.Config{Region: aws.String("region")})
	dynaTable := db.Table("table")
	dynaTable.Update("pk", "word").Range("sk", "range key").Add("count", 1).If("'count' = ? OR attribute_not_exists('count')", 0).Run()
}
func ExampleTable_Update_conditional ( ) { db := dynamo . New ( session . New ( ) , & aws . Config { Region : aws . String ( " " ) } ) dynaTable := db . Table ( " " ) dynaTable . Update ( " " , " " ) . Range ( " " , " " ) . Add ( " " , 1 ) . If ( " " , 0 ) . Run ( ) }
Table Update on conditional updating
This will only add 1 to attribute "count" if "count" = 0 or it does not exists
Table Update on conditional updating This will only add 1 to attribute " count " if " count " = 0 or it does not exists
// db table setup