store.h 1017 B

1234567891011121314151617181920212223242526272829
  1. /** @file store.h
  2. *
  3. * @brief Common back end store definitions.
  4. *
  5. * New store implementations should include this header.
  6. */
  7. #ifndef _LSUP_STORE_H
  8. #define _LSUP_STORE_H
  9. /*
  10. * Store feature flags.
  11. *
  12. * NOTE: LSUP_STORE_PERM need only be set by an implementation based on whether
  13. * its path is on a default temporary dir (e.g. LSUP_MDB_RAMDISK_PATH). If this
  14. * flag is not set, it means the data will be cleared before the next execution
  15. * of the program. However, its being set does not guarantee the persistence of
  16. * the medium (i.e. a "permanent" store may have been created ad hoc on a
  17. * tempfs).
  18. */
  19. #define LSUP_STORE_PERM 1<<0 /// Store is on a permanent location.
  20. #define LSUP_STORE_CTX 1<<1 /// Store supports contexts (quads).
  21. #define LSUP_STORE_IDX 1<<2 /// Store is fully SPO(C)-indexed.
  22. #define LSUP_STORE_TXN 1<<3 /// Supports manual transaction handling.
  23. #define LSUP_STORE_NET 1<<4 /// Store is over a network protocol.
  24. #endif /* _LSUP_STORE_H */