We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f4f94e commit 8af6506Copy full SHA for 8af6506
table/table.go
@@ -90,6 +90,11 @@ func (t *Table) Get(columns ...string) (stmt string, names []string) {
90
ToCql()
91
}
92
93
+// GetQuery returns query which gets by partition key.
94
+func (t *Table) GetQuery(session gocqlx.Session, columns ...string) *gocqlx.Queryx {
95
+ return session.Query(t.Get(columns...))
96
+}
97
+
98
// Select returns select by partition key statement.
99
func (t *Table) Select(columns ...string) (stmt string, names []string) {
100
if len(columns) == 0 {
0 commit comments