Documentation ¶
Index ¶
- type Collection
- type DBTX
- type GetAllCollectionsToCompactRow
- type GetRecordsForCollectionParams
- type InsertCollectionParams
- type InsertRecordParams
- type Queries
- func (q *Queries) DeleteCollection(ctx context.Context, collectionIds []string) error
- func (q *Queries) DeleteRecords(ctx context.Context, collectionIds []string) error
- func (q *Queries) GetAllCollections(ctx context.Context) ([]string, error)
- func (q *Queries) GetAllCollectionsToCompact(ctx context.Context, minCompactionSize int64) ([]GetAllCollectionsToCompactRow, error)
- func (q *Queries) GetCollectionForUpdate(ctx context.Context, id string) (Collection, error)
- func (q *Queries) GetLastCompactedOffset(ctx context.Context, id string) (int64, error)
- func (q *Queries) GetRecordsForCollection(ctx context.Context, arg GetRecordsForCollectionParams) ([]RecordLog, error)
- func (q *Queries) GetTotalUncompactedRecordsCount(ctx context.Context) (int64, error)
- func (q *Queries) InsertCollection(ctx context.Context, arg InsertCollectionParams) (Collection, error)
- func (q *Queries) InsertRecord(ctx context.Context, arg []InsertRecordParams) (int64, error)
- func (q *Queries) PurgeRecords(ctx context.Context) error
- func (q *Queries) UpdateCollectionCompactionOffsetPosition(ctx context.Context, arg UpdateCollectionCompactionOffsetPositionParams) error
- func (q *Queries) UpdateCollectionEnumerationOffsetPosition(ctx context.Context, arg UpdateCollectionEnumerationOffsetPositionParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type RecordLog
- type UpdateCollectionCompactionOffsetPositionParams
- type UpdateCollectionEnumerationOffsetPositionParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type DBTX ¶
type DBTX interface { Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error) Query(context.Context, string, ...interface{}) (pgx.Rows, error) QueryRow(context.Context, string, ...interface{}) pgx.Row CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error) }
type InsertCollectionParams ¶
type InsertRecordParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) DeleteCollection ¶
func (*Queries) DeleteRecords ¶
func (*Queries) GetAllCollections ¶
func (*Queries) GetAllCollectionsToCompact ¶
func (*Queries) GetCollectionForUpdate ¶
func (*Queries) GetLastCompactedOffset ¶
func (*Queries) GetRecordsForCollection ¶
func (*Queries) GetTotalUncompactedRecordsCount ¶
func (*Queries) InsertCollection ¶
func (q *Queries) InsertCollection(ctx context.Context, arg InsertCollectionParams) (Collection, error)
func (*Queries) InsertRecord ¶
func (*Queries) UpdateCollectionCompactionOffsetPosition ¶
func (q *Queries) UpdateCollectionCompactionOffsetPosition(ctx context.Context, arg UpdateCollectionCompactionOffsetPositionParams) error
func (*Queries) UpdateCollectionEnumerationOffsetPosition ¶
func (q *Queries) UpdateCollectionEnumerationOffsetPosition(ctx context.Context, arg UpdateCollectionEnumerationOffsetPositionParams) error
Click to show internal directories.
Click to hide internal directories.