|
docudb
1.0
|
Reference to a database document. More...
#include <docudb.hpp>
Public Member Functions | |
| db_document_ref (db_document const &doc) | |
| Constructs a new db_document_ref object from a db_document object. | |
| db_document_ref (std::string_view table_name, std::string_view doc_id, sqlite3 *db_handle) | |
| Constructs a new db_document_ref object. | |
| std::string | id () const |
| Gets the document ID. | |
| db_document | doc () const |
| Gets the full document object. | |
| void | erase () |
| Removes the document from the collection. | |
Reference to a database document.
Definition at line 515 of file docudb.hpp.
| docudb::db_document_ref::db_document_ref | ( | db_document const & | doc | ) |
Constructs a new db_document_ref object from a db_document object.
| doc | The document object. |
| docudb::db_document_ref::db_document_ref | ( | std::string_view | table_name, |
| std::string_view | doc_id, | ||
| sqlite3 * | db_handle ) |
Constructs a new db_document_ref object.
| table_name | The name of the table. |
| doc_id | The document ID. |
| db_handle | The SQLite database handle. |
| db_document docudb::db_document_ref::doc | ( | ) | const |
Gets the full document object.
| void docudb::db_document_ref::erase | ( | ) |
Removes the document from the collection.
| std::string docudb::db_document_ref::id | ( | ) | const |
Gets the document ID.