Documentation
¶
Index ¶
- type DB
- func (db *DB) AddPhotoToAlbum(photoID, albumID string) error
- func (db *DB) Driver() string
- func (db *DB) GetAlbums() ([]models.Album, error)
- func (db *DB) GetAlbumsWithPhotoCounts() ([]models.AlbumWithPhotoCount, error)
- func (db *DB) GetPhotoByID(id string) (*models.PhotoWithSizeVariants, error)
- func (db *DB) GetPhotosNeedingMetadata(albumID *string, limit, offset int) ([]models.PhotoWithSizeVariants, error)
- func (db *DB) Health() error
- func (db *DB) UpdatePhoto(id string, update models.PhotoUpdate) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) AddPhotoToAlbum ¶ added in v1.1.3
AddPhotoToAlbum adds a photo to an album without removing existing memberships.
func (*DB) GetAlbumsWithPhotoCounts ¶
func (db *DB) GetAlbumsWithPhotoCounts() ([]models.AlbumWithPhotoCount, error)
func (*DB) GetPhotoByID ¶
func (db *DB) GetPhotoByID(id string) (*models.PhotoWithSizeVariants, error)
func (*DB) GetPhotosNeedingMetadata ¶
func (*DB) UpdatePhoto ¶
func (db *DB) UpdatePhoto(id string, update models.PhotoUpdate) error
Click to show internal directories.
Click to hide internal directories.