Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
database.cpp File Reference

SqliteDatabase implementation with migration runner. More...

#include <entropic/storage/database.h>
#include <entropic/types/logging.h>
#include <sqlite3.h>
#include <array>
#include <cstring>
Include dependency graph for database.cpp:

Go to the source code of this file.

Classes

struct  entropic::Migration
 A single named migration. More...
 

Namespaces

namespace  entropic
 Activate model on GPU (WARM → ACTIVE).
 

Functions

static std::vector< std::string > entropic::get_applied_migrations (sqlite3 *db)
 Get names of already-applied migrations.
 
static bool entropic::apply_migration (sqlite3 *db, const Migration &mig)
 Apply a single migration and record it.
 
static bool entropic::is_applied (const std::vector< std::string > &applied, const char *name)
 Check if a migration name is in the applied list.
 

Variables

static constexpr const char * entropic::MIGRATION_001_INITIAL
 
static constexpr const char * entropic::MIGRATION_002_FTS
 
static constexpr const char * entropic::MIGRATION_003_DELEGATIONS
 
static constexpr const char * entropic::MIGRATION_004_COMPACTION_SNAPSHOTS
 
static constexpr std::array< Migration, 4 > entropic::MIGRATIONS
 

Detailed Description

SqliteDatabase implementation with migration runner.

Version
1.8.8

Definition in file database.cpp.