package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.3.tar.gz
sha256=7d07b9c7edcd5f5cee242facf4260272c56e56eb34b897888299ceece3e61d57
sha512=305f97d253d39f3b9d260e018d45f2563bea911cb164ad4d40c450e6c21081f1e7cde68203f9be6633b6933e1bad39da8405b99e8ace58adcc07758d37b8f2fd

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

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.

Sourceval remove_key : Database.t -> t -> (unit, Sqlite3.Rc.t * string) result

remove_key db t removes all entries from db with music_id and key.

  • since 0.3.3
Sourceval remove_all_id : Database.t -> int64 -> (unit, Sqlite3.Rc.t * string) result

remove_all_id db music_id removes all entries containing music_id inside db.

  • since 0.3.3

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.