diff --git a/table/table.go b/table/table.go index e275bac..0c708e8 100644 --- a/table/table.go +++ b/table/table.go @@ -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