Crate caffe2_db

source ·

Macros

Structs

  • | A reader wrapper for DB that also allows | us to serialize it. |
  • | Below, we provide a bare minimum database | “minidb” as a reference implementation as well | as a portable choice to store data. | | Note that the MiniDB classes are not exposed | via a header file - they should be created | directly via the db interface. See MiniDB for | details.

Enums

  • | The mode of the database, whether we | are doing a read, write, or creating | a new database. |

Traits

  • | An abstract class for the cursor of the | database while reading. |
  • | An abstract class for accessing a database | of key-value pairs. |
  • | An abstract class for the current database | transaction while writing. |

Functions

  • | Returns a database object of the given | database type, source and mode. The | caller takes the ownership of the pointer. | If the database type is not supported, | a nullptr is returned. The caller is | responsible for examining the validity | of the pointer. |
  • | Returns whether or not a database exists | given the database type and path. |