MantisBase v0.4.9
Loading...
Searching...
No Matches
mantis.h
Go to the documentation of this file.
1
8
9#ifndef MB_MANTIS_H
10#define MB_MANTIS_H
11
12// Utility functions
13#include "utils/utils.h"
14#include "utils/uuidv7.h"
15#include "utils/soci_wrappers.h"
16
17// Core application
18#include "export.h"
19#include "mantisbase.h"
20
21// Core components
22#include "core/context_store.h"
23#include "core/database.h"
24#include "core/exceptions.h"
25#include "core/expr_evaluator.h"
26#include "core/files.h"
27#include "core/http.h"
28#include "core/auth.h"
29#include "core/email.h"
30#include "core/logger/logger.h"
31#include "core/middlewares.h"
32#include "core/route_registry.h"
33#include "core/router.h"
34#include "core/kv_store.h"
35#include "core/types.h"
36#include "core/realtime.h"
38#include "core/sse.h"
39#include "core/ws.h"
40
41// Models and data structures
43#include "core/models/entity.h"
46
47// For convenience to using json,
48// lets include it here
49#include <nlohmann/json.hpp>
50namespace mb {
51 using json = nlohmann::json;
52}
53
54// For argparse lib
55#include <argparse/argparse.hpp>
56
57// Add soci include
58#include <soci/soci.h>
59
60#endif // MB_MANTIS_H
JWT session management and entry point for API keys, OAuth, and email OTP login.
Generic key-value context store for scripting and internal utilities.
MbDatabase connection, pooling, and system table migration.
MbEntity class for database table operations and CRUD functionality.
MbEntity schema builder and management class.
MbEntity schema field definition and validation.
Custom exception class for MantisBase errors.
DLL/shared-library symbol visibility macros for MantisBase.
Expression Evaluator Unit for database access rules.
File management for record-level file assets.
HTTP request/response wrappers with unified body handling.
Key-value store for application settings.
Structured logging wrapper around spdlog with optional SQLite persistence.
The main application for mantisbase.
Middleware functions for request processing.
Definition api_keys.h:35
nlohmann::json json
Shorten JSON namespace.
Definition api_keys.h:36
Realtime database change detection for SQLite and PostgreSQL.
Shared auth, topic filtering, and session helpers for SSE and WebSocket realtime.
In-memory HTTP route table keyed by method and path.
HTTP router: route registration, schema cache, CORS, and built-in API endpoints.
SOCI database wrapper utilities.
Server-Sent Events (SSE) manager for the realtime API.
Core type aliases, handler signatures, and the MbAppMixin DI mixin.
Collection of utility functions that are re-used across different files.
UUID v7 generation utilities.
Validation utilities for entity schemas and request bodies.
WebSocket realtime manager and controller for /api/v1/realtime/ws.