← Back to Pull requests

Features/extra basic types #46

Closed
unknown closed this pull request without merging on Jul 15, 2026 14:29 UTC
View on GitHub
unknown unknown commented on Jun 20, 2026 11:31 UTC
Author

Hi @anarthal,

When working on the geometry PR #42 discovered that simple types where not supported.
Added them:

  • BOOL => pg_bool | bool

  • FLOAT4 => pg_float4 | float

  • FLOAT8 => pg_float8 | double

  • NUMERIC => pg_numeric | boost::multiprecision::cpp_dec_float_50

  • TEXT => pg_text | std::string_view

  • VARCHAR => pg_varchar | std::string_view
  • Existing 3 reorganized:

  • INT2 => pg_int2 = std::int16_t;

  • INT4 => pg_int4 = std::int32_t;

  • INT8 => pg_int8 = std::int64_t;
  • Added example in example/base.cpp

    Also reorganized a bit: Take a good look please if you agree!

  • types/base.hpp | detail::field_traits_base.hpp | base.cpp (example) => all about base types

  • types/datetime.hpp | detail::field_traits_datetime.hpp | datetime.cpp (example) => all about datetime types
  • Moved the dedicated implementation(s) in response.cpp to the coresponding field_traits_XXX.hpp (inline)

    Why I did this reorganizing: Much clearer and consistently setup for types.

    Looking forward for your review comments.

    Thanks again,

    Henry

    Diff: 131 lines (+98 / -33) across 1 files Reviewer: anarthal Review duration: 36178m
    All Vouch review confidence checks passed
    Residual risk 0.13 = Change Risk (0.32) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.32 · 131 lines diff across 1 files
    0.32
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.292
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #46"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 32.2% (LOW) · Higher = larger blast radius
    32.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 12.7% · Safe to merge
    12.7%