ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | List of all members
database_info Struct Referencefinal

Build and schema metadata recorded when the database was created or recreated. More...

#include <database_info.hpp>

Collaboration diagram for database_info:
Collaboration graph

Public Attributes

boost::uuids::uuid id
 Fixed UUID identifying the singleton database info record.
 
std::string schema_version
 Database schema version matching the application version.
 
std::string build_environment
 Build environment identifier.
 
std::string git_commit
 Short git commit hash of the code that created this database.
 
std::string git_date
 Date and time of the git commit that created this database.
 
std::chrono::system_clock::time_point created_at
 Timestamp when this record was created.
 

Detailed Description

Build and schema metadata recorded when the database was created or recreated.

Stores the schema version, git commit, and build environment inserted at database creation time. Used to correlate service behaviour with the database schema in use. Contains exactly one row.

Member Data Documentation

◆ id

boost::uuids::uuid id

Fixed UUID identifying the singleton database info record.

A well-known UUID inserted by the creation script.

◆ schema_version

std::string schema_version

Database schema version matching the application version.

Set to ORES_VERSION (e.g. '0.0.13') at database creation time.

◆ build_environment

std::string build_environment

Build environment identifier.

e.g. 'local', 'production', 'staging'. Prefix from ORES_BUILD_INFO.

◆ git_commit

std::string git_commit

Short git commit hash of the code that created this database.

e.g. 'c7681ac4' or 'c7681ac4-dirty'. From ORES_BUILD_INFO.

◆ git_date

std::string git_date

Date and time of the git commit that created this database.

e.g. '2026/02/25 22:43:31'. From ORES_BUILD_INFO.