Stroika Library 3.0d23
 
Loading...
Searching...
No Matches
Connection.h File Reference
#include "Stroika/Foundation/StroikaPreComp.h"
#include <optional>
#include "Stroika/Foundation/Characters/String.h"
#include "Stroika/Foundation/Containers/Set.h"
#include "Stroika/Foundation/Database/Document/Collection.h"
#include "Stroika/Foundation/Debug/AssertExternallySynchronizedMutex.h"
#include "Connection.inl"

Go to the source code of this file.

Classes

class  Stroika::Foundation::Database::Document::Connection::Ptr
 
class  Stroika::Foundation::Database::Document::Connection::IRep
 

Namespaces

namespace  Stroika::Foundation
 

Typedefs

using Stroika::Foundation::Database::Document::Connection::OpertionCallbackPtr = function< void(Operation op, const Ptr &documentDBConnection, const optional< String > &collectionName, const exception_ptr &e)>
 

Enumerations

enum  Stroika::Foundation::Database::Document::Connection::Operation
 

Detailed Description

The point of this module is to define a Connection abstraction that can be used for different kinds of connections (e.g. SQLite local database object, and mongoDB remote database object). This generic API can then be used in places where either backend database might be in use.

Note
Code-Status: Alpha

Definition in file Foundation/Database/Document/Connection.h.

Typedef Documentation

◆ OpertionCallbackPtr

using Stroika::Foundation::Database::Document::Connection::OpertionCallbackPtr = typedef function<void (Operation op, const Ptr& documentDBConnection, const optional<String>& collectionName, const exception_ptr& e)>

Optionally passed to SomeKindOfDocDB::Connection::New (its Options argument) for the purpose of logging;

Note
exception_ptr is only provided for eNotifyError, and is typically current_exception () but can be nullptr
callback must be internally synchonized, and maybe called in nested fasion.
OpertionCallbackPtr must be no-throw (sadly not capturable with std::function).

Definition at line 58 of file Foundation/Database/Document/Connection.h.

Enumeration Type Documentation

◆ Operation

Optionally passed to OpertionCallbackPtr for the purpose of logging

Definition at line 43 of file Foundation/Database/Document/Connection.h.