Documentation
¶
Index ¶
- type Dialect
- type PgSQL
- func (px *PgSQL) DeleteBlobMeta(ctx context.Context, blobId blid.Blid) error
- func (px *PgSQL) GetBlobMeta(ctx context.Context, blobId blid.Blid) (*metadata.Item, bool, error)
- func (px *PgSQL) GetBlobTags(ctx context.Context, blobId blid.Blid) ([]string, error)
- func (px *PgSQL) ListBlobChunk(ctx context.Context, filter *filter.Filter, limit int) ([]*metadata.Item, error)
- func (px *PgSQL) SetBlobMeta(ctx context.Context, item *metadata.Item) error
- func (px *PgSQL) SetBlobTags(ctx context.Context, tags []string, blobId blid.Blid) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dialect ¶
type Dialect struct {
// contains filtered or unexported fields
}
func (*Dialect) IsDuplicateKeyError ¶
IsDuplicateKeyError returns true if the given error is for a duplicated key / unique constraint error.
func (*Dialect) SetParamPlaceholders ¶
type PgSQL ¶
type PgSQL struct {
// contains filtered or unexported fields
}
func (*PgSQL) DeleteBlobMeta ¶
DeleteBlobMeta deletes metadata about a blob.
func (*PgSQL) GetBlobMeta ¶
HasBlobMeta returns true if we have metadata about a given blob.
func (*PgSQL) GetBlobTags ¶
GetBlobTags returns the tags attached to a certain blob.
func (*PgSQL) ListBlobChunk ¶
func (px *PgSQL) ListBlobChunk(ctx context.Context, filter *filter.Filter, limit int) ([]*metadata.Item, error)
ListBlobChunk returns blob chunk metadata.
func (*PgSQL) SetBlobMeta ¶
Click to show internal directories.
Click to hide internal directories.