collitems

package
v1.167.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package collitems writes and reads one collection item at a time (#2260): the append the asset viewer's Add to collection makes, and the summary of a collection's sections the picker shows. The whole-collection writes (create, rename, the section list replaced at once) stay in portalstore, whose collection store answers these two by calling here.

Index

Constants

This section is empty.

Variables

View Source
var ErrCollectionNotFound = errors.New("collection not found")

ErrCollectionNotFound is the refusal of an append to a collection that does not exist or was deleted.

Functions

func AppendItem

func AppendItem(ctx context.Context, db *sql.DB, collectionID, sectionID, assetID string) (portaldomain.AppendedItem, error)

AppendItem adds one asset at the end of one section (#2260). It holds the collection row for the transaction, so two appends to one collection, or an append beside a full section replace that also writes the row, take turns rather than interleaving positions.

func SectionSummaries

func SectionSummaries(ctx context.Context, db *sql.DB, collectionIDs []string, assetID string) (map[string][]portaldomain.SectionSummary, error)

SectionSummaries reads the sections of the given collections in one statement, each marked with whether assetID is among its items.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL