Documentation
¶
Overview ¶
Package table adds support for super simple CRUD operations based on table model.
Index ¶
- type Metadata
- type Table
- func (t *Table) Delete(columns ...string) (stmt string, names []string)
- func (t *Table) Get(columns ...string) (stmt string, names []string)
- func (t *Table) Insert() (stmt string, names []string)
- func (t *Table) Metadata() Metadata
- func (t *Table) Name() string
- func (t *Table) Select(columns ...string) (stmt string, names []string)
- func (t *Table) SelectBuilder(columns ...string) *qb.SelectBuilder
- func (t *Table) Update(columns ...string) (stmt string, names []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table allows for simple CRUD operations, it's backed by query builders from gocqlx/qb package.
func (*Table) SelectBuilder ¶
func (t *Table) SelectBuilder(columns ...string) *qb.SelectBuilder
SelectBuilder returns a builder initialised to select by partition key statement.