package camomile

  1. Overview
  2. Docs
A Unicode library

Install

Dune Dependency

Authors

Maintainers

Sources

camomile-1.0.2.tbz
sha256=f0a419b0affc36500f83b086ffaa36c545560cee5d57e84b729e8f851b3d1632
sha512=7586422e68779476206027c6ebbe19b677fbe459153221f7c952c7fae374c5c8232249cb76fdb1f482069707aa1580be827cd39693906142988268b7f0e7f6d0

doc/camomile.library/CamomileLibrary/Private/Database/index.html

Module Private.Database

Database.ml : Unified interfaces of stored data for Camomile

val read : string -> string -> (in_channel -> 'a) -> string -> 'a

read dir suffix reader key reads information using reader. Data are supposed to reside in the files under dir directory with suffix suffix. reader takes in_channel as an argument and read data from in_channel. The key specifies key associated the value. Any characters can be used in key, since they are properly escaped. If there are no data associated to key, raise Not_found.

val write : string -> string -> (out_channel -> 'a -> unit) -> string -> 'a -> unit

writer dir suffix writer key data write data associated the key into the directory dir with suffix. You can use any characters in key since they are propery escaped.

OCaml

Innovation. Community. Security.