Skip to content

Commit

Permalink
table: Add SelectAll
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatczuk committed Oct 30, 2020
1 parent 5a48acc commit bc762eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions table/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ func (t *Table) SelectBuilder(columns ...string) *qb.SelectBuilder {
return qb.Select(t.metadata.Name).Columns(columns...).Where(t.partKeyCmp...)
}

// SelectAll returns select * statement.
func (t *Table) SelectAll() (stmt string, names []string) {
return qb.Select(t.metadata.Name).ToCql()
}

// Insert returns insert all columns statement.
func (t *Table) Insert() (stmt string, names []string) {
return t.insert.stmt, t.insert.names
Expand Down

0 comments on commit bc762eb

Please sign in to comment.