package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.2.0.tar.gz
sha256=966fc8667c2aa9830e64950d2de74bd564a65d60e1f50cfd3dc1e99ef106dc47
sha512=6423ce04d784ba521a7f49fabdafbe036e2dd80cd08ca999fdc6767262d7f12aa4e5002d65efd4c568b343eaabf4d680191c88334d629e1ca0156084531e9e0b

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.