Documentation ¶
Overview ¶
Package gensql provides SQL logic commonly shared between multiple implementations.
Index ¶
- func DeleteBlobMeta(ctx context.Context, dl Dialect, blobId blid.Blid) error
- func GetBlobMeta(_ context.Context, dl Dialect, blobId blid.Blid) (*metadata.Item, bool, error)
- func GetBlobTags(ctx context.Context, dl Dialect, blobId blid.Blid) ([]string, error)
- func ListBlobChunk(_ context.Context, dl Dialect, filter *filter.Filter, limit int) ([]*metadata.Item, error)
- func SetBlobMeta(_ context.Context, dl Dialect, item *metadata.Item) error
- func SetBlobTags(ctx context.Context, dl Dialect, tags []string, blobId blid.Blid) error
- func SetupDB(db *sql.DB, updates []SchemaSetupEntry) error
- type Dialect
- type SchemaSetupEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteBlobMeta ¶
DeleteBlobMeta wipes a blob from the db.
func GetBlobMeta ¶
GetBlobMeta returns blob metadata
func GetBlobTags ¶
func ListBlobChunk ¶
func SetBlobMeta ¶
SetBlobMeta sets blob metadata.
func SetBlobTags ¶
Types ¶
type SchemaSetupEntry ¶
Click to show internal directories.
Click to hide internal directories.