Module SkhcDb.MusicPropertySource

Operations on music's property

Sourcemodule Column : sig ... end

MusicParticipant's table columns

Sourcetype t

type of music's property

Sourceval init : int64 -> string -> string -> t

init music_id key value creates a relation by associating music_id with key and value.

Sourceval to_yojson : t -> Yojson.Safe.t
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 insert : Database.t -> t -> (unit, Sqlite3.Rc.t * string) result

insert db property inserts property inside db.

properties db music_id returns all the properties associated with music_id in db.

Sourceval music_id : t -> int64

music_id p returns the music_id associated with the property p.

Sourceval key : t -> string

key p returns the key of the property p.

Sourceval value : t -> string

value p returns the value of the property p.