Automated UDT support
This patch adds the power of GocqlX to UDTs.
Now you can make a struct be UDT compatible by adding a single line.
```
type FullName struct {
gocqlx.UDT
FirstName string
LastName string
}
```
Signed-off-by: Michał Matczuk <michal@scylladb.com>
This commit is contained in:
committed by
Michal Jan Matczuk
parent
2569c3dd8f
commit
ab279e68ed
@@ -117,13 +117,6 @@ func (q *Queryx) Idempotent(value bool) *Queryx {
|
||||
return q
|
||||
}
|
||||
|
||||
// Bind sets query arguments of query. This can also be used to rebind new query arguments
|
||||
// to an existing query instance.
|
||||
func (q *Queryx) Bind(v ...interface{}) *Queryx {
|
||||
q.Query.Bind(v...)
|
||||
return q
|
||||
}
|
||||
|
||||
// SerialConsistency sets the consistency level for the
|
||||
// serial phase of conditional updates. That consistency can only be
|
||||
// either SERIAL or LOCAL_SERIAL and if not present, it defaults to
|
||||
|
||||
Reference in New Issue
Block a user