package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.1.0.tar.gz
sha256=bb7f91cc44c09f922d2a614e9e01fd0d2976840bacf839a8b99de63c6fc5b3b8
sha512=f02827db4228b017bb2ad7d64cb1c0667831ec2341e6f759266ec834e40627c2affeace143c6d5e769b3acce63f889b3cbd1a9ca4768091840e8fce1d4750f86

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

Module SkhcDb.MusicPropertySource

Operations on music's property

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.