Comments (4)
Hello everyone. I'm very sorry for the breakage. I have just released v1.22.2 which should fix this. Please try it out and let me know how it goes. (Apologies as well for not seeing this earlier -- I have no idea why GitHub isn't notifying me anymore 😢)
from dynamo.
Happens to me too
from dynamo.
Also caught this bug. Seems that it started since version 1.22. In my usecase it happens only when attribute is pointer. Value attributes work as usual. Attaching screenshots and code to reproduce.
`package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/guregu/dynamo"
)
type User struct {
ID *string dynamo:"id,hash"
Age int dynamo:"age"
}
func main() {
sess := session.Must(session.NewSession())
cli := dynamo.New(sess, &aws.Config{Region: aws.String("eu-west-1")})
table := cli.Table("bug-get-all")
var result []User
err := table.Scan().Consistent(true).All(&result)
fmt.Println("read", len(result), err)
fmt.Printf("[%s %d] [%s %d]\n", *result[0].ID, result[0].Age, *result[1].ID, result[1].Age)
}
`
go.mod:
`module dynamo9
go 1.21.0
require (
github.com/aws/aws-sdk-go v1.49.13
github.com/guregu/dynamo v1.22.0
)
require (
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
golang.org/x/sync v0.6.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
`
from dynamo.
It happens to me, too.
from dynamo.
Related Issues (20)
- DB does not implement all the functions of DynamoDBAPI interface HOT 1
- I can not get the effective lastEvaluatedKey by LastEvaluatedKey() HOT 2
- improved error messages for setExpr when the proper fields are not provided HOT 2
- Should the builder types be immutable?
- Query on Global Secondary Index HOT 1
- Typo in Keys example code HOT 2
- :/ HOT 1
- Flatten child struct to the parent struct HOT 5
- runtime error: invalid memory address or nil pointer dereference HOT 2
- Retry functionality - additional toggles HOT 6
- Encoding recursive structs panics since 1.22.0 HOT 2
- Encoding Issue: unsupported type structpb.isValue_Kind HOT 2
- Encoding slices is broken on 1.22 when using structs pointer fields - AllWithContext HOT 3
- Is there a no-internal-pagination mode for Scan/Query? HOT 8
- Panic on saving struct with pointer to anonymous struct HOT 5
- Exposing condition builder publicly HOT 4
- deleted
- attribute_not_exists doesn't seem to be working. Able to insert the same key. #236 HOT 1
- Feature request: ability to track number of requests made HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamo.