package traildb

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type tdb_cons
type tdb
type path = string
type uuid = Uuidm.t
type timestamp = int64
type field_name = string
type field_value = string
module Cons : sig ... end
val open_r : path -> tdb
val dontneed : tdb -> unit
val willneed : tdb -> unit
val num_trails : tdb -> int64
val num_events : tdb -> int64
val min_timestamp : tdb -> timestamp
val max_timestamp : tdb -> timestamp
type trail_id = int64
val get_uuid : tdb -> trail_id -> uuid option
val get_trail_id : tdb -> uuid -> trail_id option
type tbd_field = int64
type tdb_item
type tdb_event = {
  1. timestamp : timestamp;
  2. values : tdb_item list;
}
val num_fields : tdb -> int64
val get_field : tdb -> string -> tbd_field option
val get_field_name : tdb -> tbd_field -> string option
val lexicon_size : tdb -> tbd_field -> int64
val get_item_field : tdb_item -> tbd_field
val get_item_value : tdb -> tdb_item -> string
module Cursor : sig ... end
module Filter : sig ... end
type error =
  1. | TDB_ERR_NOMEM
  2. | TDB_ERR_PATH_TOO_LONG
  3. | TDB_ERR_UNKNOWN_FIELD
  4. | TDB_ERR_UNKNOWN_UUID
  5. | TDB_ERR_INVALID_TRAIL_ID
  6. | TDB_ERR_HANDLE_IS_NULL
  7. | TDB_ERR_HANDLE_ALREADY_OPENED
  8. | TDB_ERR_UNKNOWN_OPTION
  9. | TDB_ERR_INVALID_OPTION_VALUE
  10. | TDB_ERR_INVALID_UUID
  11. | TDB_ERR_IO_OPEN
  12. | TDB_ERR_IO_CLOSE
  13. | TDB_ERR_IO_WRITE
  14. | TDB_ERR_IO_READ
  15. | TDB_ERR_IO_TRUNCATE
  16. | TDB_ERR_IO_PACKAGE
  17. | TDB_ERR_INVALID_INFO_FILE
  18. | TDB_ERR_INVALID_VERSION_FILE
  19. | TDB_ERR_INCOMPATIBLE_VERSION
  20. | TDB_ERR_INVALID_FIELDS_FILE
  21. | TDB_ERR_INVALID_UUIDS_FILE
  22. | TDB_ERR_INVALID_CODEBOOK_FILE
  23. | TDB_ERR_INVALID_TRAILS_FILE
  24. | TDB_ERR_INVALID_LEXICON_FILE
  25. | TDB_ERR_INVALID_PACKAGE
  26. | TDB_ERR_TOO_MANY_FIELDS
  27. | TDB_ERR_DUPLICATE_FIELDS
  28. | TDB_ERR_INVALID_FIELDNAME
  29. | TDB_ERR_TOO_MANY_TRAILS
  30. | TDB_ERR_VALUE_TOO_LONG
  31. | TDB_ERR_APPEND_FIELDS_MISMATCH
  32. | TDB_ERR_LEXICON_TOO_LARGE
  33. | TDB_ERR_TIMESTAMP_TOO_LARGE
  34. | TDB_ERR_TRAIL_TOO_LONG
  35. | TDB_ERR_ONLY_DIFF_FILTER
  36. | TDB_ERR_NO_SUCH_ITEM
  37. | TDB_ERR_INVALID_RANGE
  38. | TDB_ERR_INCORRECT_TERM_TYPE
exception Error of error
val error_str : error -> string
OCaml

Innovation. Community. Security.