package traildb

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module TrailDBSource

Sourcetype tdb_cons
Sourcetype tdb
Sourcetype path = string
Sourcetype uuid = Uuidm.t
Sourcetype timestamp = int64
Sourcetype field_name = string
Sourcetype field_value = string
Sourcemodule Cons : sig ... end
Sourceval open_r : path -> tdb
Sourceval dontneed : tdb -> unit
Sourceval willneed : tdb -> unit
Sourceval num_trails : tdb -> int64
Sourceval num_events : tdb -> int64
Sourceval min_timestamp : tdb -> timestamp
Sourceval max_timestamp : tdb -> timestamp
Sourcetype trail_id = int64
Sourceval get_uuid : tdb -> trail_id -> uuid option
Sourceval get_trail_id : tdb -> uuid -> trail_id option
Sourcetype tbd_field = int64
Sourcetype tdb_item
Sourcetype tdb_event = {
  1. timestamp : timestamp;
  2. values : tdb_item list;
}
Sourceval num_fields : tdb -> int64
Sourceval get_field : tdb -> string -> tbd_field option
Sourceval get_field_name : tdb -> tbd_field -> string option
Sourceval lexicon_size : tdb -> tbd_field -> int64
Sourceval get_item_field : tdb_item -> tbd_field
Sourceval get_item_value : tdb -> tdb_item -> string
Sourcemodule Cursor : sig ... end
Sourcemodule Filter : sig ... end
Sourcetype 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
Sourceexception Error of error
Sourceval error_str : error -> string
OCaml

Innovation. Community. Security.