/** * Database Module - Main Entry Point * * Re-exports all database functionality for easy imports. * Existing code can continue to import from './db' or './db/index'. */ export { getDbPath, getCacheDir, initDb, getDb, clearDb, recreateDb, dbExists, closeDb, } from './connection.js'; export { createSchema, createSavedQueriesTable, } from './schema.js'; export { type ValidationResult, type TechniqueIdFilters, type CoverageReport, type GapAnalysis, type DetectionSuggestion, type NavigatorLayerOptions, type DetectionListItem, type SourceComparisonResult, insertDetection, getDetectionById, getRawYaml, getDetectionCount, searchDetections, listDetections, listBySource, listByMitre, listByLogsource, listBySeverity, listByCve, listByAnalyticStory, listByProcessName, listByDetectionType, listByDataSource, listByKqlCategory, listByKqlTag, listByKqlDatasource, listByMitreTactic, getStats, getDistinctTechniqueIds, getDistinctCves, getDistinctProcessNames, validateTechniqueId, getTechniqueIds, analyzeCoverage, identifyGaps, suggestDetections, generateNavigatorLayer, autoExtractProcedures, extractAllProcedures, populateJunctionTables, searchDetectionList, listDetectionsBySourceLight, compareDetectionsBySource, getDetectionNamesByPattern, countDetectionsBySource, } from './detections.js'; export { insertStory, getStoryByName, getStoryById, getStoryCount, searchStories, listStories, listStoriesByCategory, } from './stories.js'; export { initSavedQueriesTable, saveQueryResult, getSavedQuery, listSavedQueries, deleteSavedQuery, cleanupExpiredQueries, getSavedQueryById, } from './cache.js'; export { initDynamicSchema, createDynamicTable, getTableMetadata, listDynamicTables, dropDynamicTable, insertDynamicRow, insertDynamicRows, queryDynamicTable, deleteDynamicRows, getDynamicRow, PREBUILT_TABLES, } from './dynamic.js'; export { type PatternData, type FieldReference, type StyleConvention, type TechniquePatterns, type ExtractionResult, initPatternsSchema, storePattern, storeFieldReference, storeStyleConvention, getPatternsByTechnique, getFieldReference, getStyleConventions, getMacroReference, extractSPLPatterns, extractSigmaPatterns, extractKQLPatterns, extractElasticPatterns, extractFieldUsage, extractMacroUsage, extractNamingConventions, extractAllPatterns, getPatternStats, } from './patterns.js'; export { type AttackActor, type AttackTechnique, type AttackSoftware, type ActorTechnique, type ActorCoverageResult, type ActorListItem, isStixLoaded, getActorByName, listActors, getActorTechniques, getActorCoverage, getSoftwareForActor, getTechniqueActors, getAttackTechnique, getAttackStats, } from './attack.js';