Research-Stack/4-Infrastructure/rds_probe/src/models.rs
Brandon Schneider c5b6a31a8b feat: add RDS probe tool, credential server, and Notion/Linear ingestion pipeline
New infrastructure components:
- rds_probe: Rust database inspection tool with IAM auth
- credential_server.py: REST credential provider server
- credential_provider.py: credential resolution chain
- ene_rds_fractal_fold.py / ene_rds_wiki_layer.py: RDS-backed ENE layers
- import_dumps_to_rds.py / export_linear_from_rds.py: ingestion pipeline
- recover_credential_server.sh: deployment script (sanitized)

Sanitize hardcoded secrets across codebase:
- Strip API keys from recover_credential_server.sh → env var lookups
- Replace hardcoded Wolfram appid (HYJE3R3R63) → env var in 5 scripts
- Strip fallback key values from config/index.js
- Add .claude/ and optimized_basis_v3.bin to .gitignore

Ingested 2,685 records into RDS: 2,421 Linear issues + 264 wiki pages
2026-05-18 00:31:44 -05:00

40 lines
951 B
Rust

use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
pub struct TableInfo {
pub table_name: String,
pub table_schema: String,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct ColumnInfo {
pub column_name: String,
pub data_type: String,
pub is_nullable: String,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct CountResult {
pub domain: String,
pub archetype: String,
pub count: i64,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct PackageRecord {
pub pkg: String,
pub version: Option<String>,
pub domain: Option<String>,
pub tier: Option<String>,
pub archetype: Option<String>,
pub description: Option<String>,
pub tags: Option<serde_json::Value>,
pub source: Option<String>,
pub indexed_utc: Option<String>,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct CommandOutput {
pub success: bool,
pub data: serde_json::Value,
}