Module SkhcDb.MusicParticipantSource

Operations on music's participant

Sourcemodule Column : sig ... end

MusicParticipant's table columns

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.