Module SkhcDb.ParticipantSource

Operation on a participant.

Sourcetype t

type of the participant.

Sourceval compare : t -> t -> int

compare p1 p2 is Stdlib.compare p1 p2.

Sourceval equal : t -> t -> bool

equal p1 p2 tests whether p1 equals p2.

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

init id role creates a new participant by associating an artist id with its role.

Sourceval to_yojson : t -> Yojson.Safe.t
Sourceval artist : t -> int64

artist participant returns the id associated with participant.

Sourceval role : t -> Role.t

role participant returns the role associated with participant.