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) DeleteBuilder(columns ...string) *qb.DeleteBuilder
- 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) PrimaryKeyCmp() []qb.Cmp
- 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)
- func (t *Table) UpdateBuilder(columns ...string) *qb.UpdateBuilder
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) DeleteBuilder ¶ added in v1.5.0
func (t *Table) DeleteBuilder(columns ...string) *qb.DeleteBuilder
DeleteBuilder returns a builder initialised to delete by primary key statement.
func (*Table) PrimaryKeyCmp ¶ added in v1.5.0
PrimaryKeyCmp returns copy of table's primaryKeyCmp.
func (*Table) SelectBuilder ¶
func (t *Table) SelectBuilder(columns ...string) *qb.SelectBuilder
SelectBuilder returns a builder initialised to select by partition key statement.
func (*Table) UpdateBuilder ¶ added in v1.5.0
func (t *Table) UpdateBuilder(columns ...string) *qb.UpdateBuilder
UpdateBuilder returns a builder initialised to update by primary key statement.
Click to show internal directories.
Click to hide internal directories.