-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
It seems that cqlr cannot unmarshal Cassandra results into structs with anonymous fields:
type Type1 struct {
ID *string `cql:"id"`
Name *string `cql:"name"`
}
type Type2 struct {
*Type1
Description *string `cql:"description"`
}
and then using those:
q := fmt.Sprintf(`SELECT id,name,description FROM %s WHERE id=?`, store.table)
query := store.connection.Session.Query(q, uuid)
b := cqlr.BindQuery(query)
res := &Type2{}
for b.Scan(res) {
// res.Type1.* are all nil
}
Metadata
Metadata
Assignees
Labels
No labels