Documentation ¶
Index ¶
- type Batch
- type Blob
- type BlobQuery
- func (q *BlobQuery) Each(ctx context.Context, reuseItem bool, action func(*Blob) error) error
- func (q *BlobQuery) First(ctx context.Context) (*Blob, error)
- func (q *BlobQuery) Limit(limit int) *BlobQuery
- func (q *BlobQuery) Slice(ctx context.Context, expectedSliceSize int) ([]*Blob, error)
- func (q *BlobQuery) SortAscendingBy(column string) *BlobQuery
- func (q *BlobQuery) SortDescendingBy(column string) *BlobQuery
- func (q *BlobQuery) Where(where string, args ...interface{}) *BlobQuery
- type BlobsTable
- func (t BlobsTable) Delete(ctx context.Context, query string, args ...interface{}) error
- func (t BlobsTable) DeleteByID(ctx context.Context, id []byte) error
- func (t BlobsTable) DeleteByIDAndType(ctx context.Context, id []byte, _type int32) error
- func (t BlobsTable) FindByID(id []byte) *BlobQuery
- func (t BlobsTable) FindByIDAndType(id []byte, _type int32) *BlobQuery
- func (t BlobsTable) Insert(ctx context.Context, id []byte, _type int32, data []byte) (*Blob, error)
- func (t BlobsTable) InsertTTL(ctx context.Context, ttl int64, id []byte, _type int32, data []byte) (*Blob, error)
- func (t BlobsTable) Load(ctx context.Context, query string, args ...interface{}) (*Blob, error)
- func (t BlobsTable) LoadByID(ctx context.Context, id []byte) (*Blob, error)
- func (t BlobsTable) LoadByIDAndType(ctx context.Context, id []byte, _type int32) (*Blob, error)
- func (t BlobsTable) Query() *BlobQuery
- type DB
- type Loader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobQuery ¶
type BlobQuery struct {
// contains filtered or unexported fields
}
BlobQuery is a modifiable query against the Blobs table
func (*BlobQuery) Each ¶
Each returns a slice with all the matched item (warning: can use lots of memory)
func (*BlobQuery) Slice ¶
Slice returns a slice with all the matched item (warning: can use lots of memory)
func (*BlobQuery) SortAscendingBy ¶
SortAscendingBy adds an ascending sort column to the query
func (*BlobQuery) SortDescendingBy ¶
SortDescendingBy adds an descending sort column to the query
type BlobsTable ¶
type BlobsTable struct {
// contains filtered or unexported fields
}
BlobsTable is generated by dbkit
func (BlobsTable) Delete ¶
func (t BlobsTable) Delete(ctx context.Context, query string, args ...interface{}) error
Delete deletes records from the Blobs table based on the given query
func (BlobsTable) DeleteByID ¶
func (t BlobsTable) DeleteByID(ctx context.Context, id []byte) error
DeleteByID deletes records the Blobs table based on the given values
func (BlobsTable) DeleteByIDAndType ¶
DeleteByIDAndType deletes records the Blobs table based on the given values
func (BlobsTable) FindByID ¶
func (t BlobsTable) FindByID(id []byte) *BlobQuery
FindByID finds records the Blobs table based on the given values
func (BlobsTable) FindByIDAndType ¶
func (t BlobsTable) FindByIDAndType(id []byte, _type int32) *BlobQuery
FindByIDAndType finds records the Blobs table based on the given values
func (BlobsTable) InsertTTL ¶
func (t BlobsTable) InsertTTL(ctx context.Context, ttl int64, id []byte, _type int32, data []byte) (*Blob, error)
InsertTTL creates a record in the Cassandra Blobs table with the given TTL value
func (BlobsTable) LoadByID ¶
LoadByID loads a single record from the Blobs table based on the given values
func (BlobsTable) LoadByIDAndType ¶
LoadByIDAndType loads a single record from the Blobs table based on the given values
func (BlobsTable) Query ¶
func (t BlobsTable) Query() *BlobQuery
Query creates a query for records in the Blobs table by id
type DB ¶
type DB struct { Blobs BlobsTable // contains filtered or unexported fields }
DB is the main access point to the database
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Loader makes it easy to load multiple values from multiple tables in one go