docudb  1.0
Loading...
Searching...
No Matches
docudb.hpp File Reference
#include <string_view>
#include <string>
#include <vector>
#include <stdexcept>
#include <functional>
#include <sqlite3.h>
#include <cstdint>
#include <cmath>
#include <variant>
#include <unordered_map>
#include <memory>
#include <format>

Go to the source code of this file.

Classes

struct  docudb::details::sqlite::statement
 
struct  docudb::query::binder
 Represents a binder for query parameters. More...
 
struct  docudb::query::logic_gate< A, B >
 Represents a logic gate for combining two queryable objects. More...
 
struct  docudb::query::logic_and< A, B >
 Represents a LOGIC AND gate. More...
 
struct  docudb::query::logic_or< A, B >
 Represents a LOGIC OR gate. More...
 
struct  docudb::query::binary_op
 Represents a binary operation for querying. More...
 
struct  docudb::query::like
 Represents a LIKE operation for querying. More...
 
struct  docudb::query::regexp
 Represents a REGEXP operation for querying. More...
 
struct  docudb::query::eq
 Represents an EQUAL operation for querying. More...
 
struct  docudb::query::neq
 Represents a NOT EQUAL operation for querying. More...
 
struct  docudb::query::gt
 Represents a GREATER THAN operation for querying. More...
 
struct  docudb::query::lt
 Represents a LESSER THAN operation for querying. More...
 
struct  docudb::query::gte
 Represents a GREATER OR EQUAL THAN operation for querying. More...
 
struct  docudb::query::lte
 Represents a LESSER OR EQUAL THAN operation for querying. More...
 
struct  docudb::query::queryable_base
 Abstract base class for Queryable objects. More...
 
struct  docudb::query::queryable_wrapper< T >
 Concrete wrapper for erasing the type of a Queryable object. More...
 
struct  docudb::query::queryable_type_eraser
 Type-erased Queryable object. More...
 
struct  docudb::query::order_by
 
struct  docudb::db_exception
 Exception class for database errors. More...
 
struct  docudb::stmt_exception
 Exception class for database errors. More...
 
struct  docudb::db_document_ref
 Reference to a database document. More...
 
struct  docudb::db_document
 Represents a database document. More...
 
struct  docudb::db_collection
 Represents a collection of documents in the database. More...
 
struct  docudb::database
 Represents the database. More...
 

Namespaces

namespace  docudb
 
namespace  docudb::details
 
namespace  docudb::details::sqlite
 
namespace  docudb::query
 

Concepts

concept  docudb::query::Queryable
 Represents a queryable object.
 

Typedefs

using docudb::db_value
 Types supported.
 

Enumerations

enum class  docudb::json_type {
  docudb::null , docudb::integer , docudb::real , docudb::string ,
  docudb::object , docudb::array , docudb::boolean_true , docudb::boolean_false ,
  docudb::not_found
}
 JSON types. More...
 
enum class  docudb::open_mode { docudb::read_only , docudb::read_write , docudb::read_write_create }
 Specifies the database file open mode. More...
 
enum class  docudb::threading_mode { docudb::default_mode , docudb::multi_thread , docudb::serialized }
 Specifies the threading mode for the database connection. More...
 

Functions

template<Queryable A, Queryable B>
logic_and< A, B > docudb::query::operator&& (A &&a, B &&b)
 
template<Queryable A, Queryable B>
logic_or< A, B > docudb::query::operator|| (A &&a, B &&b)
 
std::string docudb::get_version () noexcept
 Gets the version of the library.
 
std::string docudb::get_build_timestamp () noexcept
 Gets the build timestamp.
 

Variables

thread_local int docudb::query::bind_counter
 
const int docudb::query::MAX_VAR_NUM = 250000