package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.2.0.tar.gz
sha256=966fc8667c2aa9830e64950d2de74bd564a65d60e1f50cfd3dc1e99ef106dc47
sha512=6423ce04d784ba521a7f49fabdafbe036e2dd80cd08ca999fdc6767262d7f12aa4e5002d65efd4c568b343eaabf4d680191c88334d629e1ca0156084531e9e0b

doc/shakuhachi.database/SkhcDb/MusicParticipant/index.html

Module SkhcDb.MusicParticipantSource

Operations on music's participant

Sourcetype t

type of music's participant

Sourceval init : music_id:int64 -> artist_id:int64 -> Role.t -> t

init ~music_id ~artist_id role creates a new relation by associated a music with music_id an artist with artist_id with a role.

Sourceval insert : Database.t -> t -> (unit, Sqlite3.Rc.t * string) result

insert db participant inserts participant inside db.

Sourceval update_artist : Database.t -> int64 -> int64 -> (unit, Sqlite3.Rc.t * string) result

update_artist db old_id new_id replaces old_id by new_id.

Sourceval equal : t -> t -> bool

equal m1 m2 tests whether m1 equals m2. All fields are used for the test.

Sourceval compare : t -> t -> int

compare m1 m2 is Stdlib.compare.

Sourceval music_id : t -> int64

music_id s returns the music_id in s.

Sourceval artist_id : t -> int64

artist_id s returns the artist_id in s.

Sourceval role : t -> Role.t

role s returns the role in s.