package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.2.tar.gz
sha256=c72807d303de137441b643fec1c7630c930ebc792b576783c7961b237c2114db
sha512=770f878bbdac8033d90e904ce8e9c84fc75331c7ff9b35e2204fafe3746f432f2664296dac91942a788b82a2da07478d91b76ed85cd880758d2def8a55144840

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

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 remove : Database.t -> t -> (unit, Sqlite3.Rc.t * string) result

remove db participant remove participant from db.

  • since 0.3.2
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.