OXY-SYNC-DIRECTORY 1.0
OXY-SYNC-DIRECTORY Library Documentation
Loading...
Searching...
No Matches
context.hpp File Reference

This file defines the context_t structure and function objects for metadata database operations. More...

Classes

struct  oxy::directory::context_t
 Represents a context for database operations, encapsulating a connection and schema information. More...
struct  oxy::directory::count_fn
 Function object for counting data in the database. More...
struct  oxy::directory::get_context_fn
 Function object for obtaining a context_t from a connection and schema. More...
struct  oxy::directory::pull_fn
 Function object for pulling data from the database. More...
struct  oxy::directory::push_fn
 Function object for pushing data to the database. More...
struct  oxy::directory::remove_all_fn
 Function object for removing all data from the database. More...
struct  oxy::directory::remove_fn
 Function object for removing data from the database. More...

Namespaces

namespace  oxy::directory
 The oxy::directory namespace contains interfaces and functions for synchronizing and updating the metadata directory.

Typedefs

using oxy::directory::database_t = SQLite::Database

Variables

constexpr count_fn oxy::directory::count
 A constexpr instance of the count_fn function object for use in functional programmin g.
constexpr get_context_fn oxy::directory::get_context
 A constexpr instance of the get_context_fn function object for use in functional programming.
constexpr pull_fn oxy::directory::pull
 A constexpr instance of the pull_fn function object for use in functional programming.
constexpr push_fn oxy::directory::push
 A constexpr instance of the push_fn function object for use in functional programmin g.
constexpr remove_fn oxy::directory::remove
 A constexpr instance of the remove_fn function object for use in functional programming.
constexpr remove_all_fn oxy::directory::remove_all
 A constexpr instance of the remove_all_fn function object for use in functional programming.

Detailed Description

This file defines the context_t structure and function objects for metadata database operations.

The context_t structure encapsulates a database connection and schema information, providing a convenient way to manage database operations. The get_context_fn, pull_fn, push_fn, and remove_fn function objects provide callable interfaces for obtaining a context_t, pulling data from the database, pushing data to the database, and removing data from the database, respectively.

Note
The function objects are designed to be used in functional programming contexts, allowing for concise and expressive code when performing database operations. The use of coroutines in the pull_fn and push_fn function objects enables efficient and asynchronous processing of data, allowing for non-blocking operations and improved performance when interacting with the database.
The context_t structure and function objects are part of the oxy::directory namespace, providing a modular and organized approach to managing database operations within the oxy-sync-directory library.