UNPKG

@vasoyaprince14/sql-analyzer

Version:

🚀 Enhanced SQL database analyzer with AI-powered insights, comprehensive security analysis, RLS policy auditing, and beautiful HTML reports

101 lines • 3.52 kB
/** * Enhanced SQL Database Analyzer * * A comprehensive, AI-powered SQL database analyzer that provides detailed health audits, * security analysis, performance optimization recommendations, and beautiful HTML reports. * * @author Prince Vasoya * @version 1.1.0 * @license MIT */ export { EnhancedSQLAnalyzer as default, EnhancedSQLAnalyzer, type AnalysisSummary, type AnalysisOptions } from './enhanced-sql-analyzer'; export { EnhancedDatabaseHealthAuditor, type EnhancedDatabaseHealthReport, type TableAnalysis, type TriggerAnalysis, type ProcedureAnalysis, type SecurityAnalysis, type AIInsights, type DatabaseInfo, type SchemaHealthScore, type IndexAnalysis, type PerformanceIssue, type OptimizationRecommendation, type DatabaseCostAnalysis, type MaintenanceRecommendation } from './enhanced-database-auditor'; export { EnhancedReportGenerator } from './enhanced-report-generator'; export { ConfigManager, configPresets, defaultConfig, type SqlAnalyzerConfig } from './config'; export { SQLOptimizer } from './optimizer'; export { SchemaAnalyzer } from './schema-analyzer'; export { IndexSuggestor } from './index-suggestor'; export { DatabaseHealthAuditor } from './database-health-auditor'; export { HealthReportGenerator } from './health-report-generator'; export { type AnalysisResult, type BatchAnalysisResult, type Suggestion, type SchemaAnalysis } from './types'; /** * Quick analysis function for simple use cases * * @example * ```typescript * import { quickAnalysis } from '@sql-analyzer/enhanced'; * * const summary = await quickAnalysis('postgresql://localhost/mydb', { * includeAI: true, * format: 'html' * }); * * console.log(`Health Score: ${summary.overallScore}/10`); * ``` */ export declare function quickAnalysis(connectionString: string, options?: { format?: 'cli' | 'html' | 'json'; includeAI?: boolean; outputPath?: string; }): Promise<import("./enhanced-sql-analyzer").AnalysisSummary>; /** * CI/CD analysis function optimized for automated environments * * @example * ```typescript * import { ciAnalysis } from '@sql-analyzer/enhanced'; * * const result = await ciAnalysis('postgresql://localhost/mydb'); * if (!result.passed) { * console.error(`Analysis failed with ${result.criticalIssues} critical issues`); * process.exit(1); * } * ``` */ export declare function ciAnalysis(connectionString: string): Promise<{ passed: boolean; score: number; criticalIssues: number; reportPath: string; }>; /** * Create analyzer instance with configuration * * @example * ```typescript * import { createAnalyzer, configPresets } from '@sql-analyzer/enhanced'; * * const analyzer = createAnalyzer('postgresql://localhost/mydb', { * preset: 'comprehensive', * customConfig: { * ai: { enabled: true, apiKey: 'your-key' } * } * }); * * const report = await analyzer.analyze(); * ``` */ export declare function createAnalyzer(connectionConfig: any, options?: { preset?: keyof typeof import('./config').configPresets; customConfig?: Partial<import('./config').SqlAnalyzerConfig>; format?: 'cli' | 'html' | 'json'; includeAI?: boolean; outputPath?: string; }): any; /** * Version information */ export declare const version = "1.1.0"; /** * Package metadata */ export declare const packageInfo: { name: string; version: string; description: string; author: string; license: string; repository: string; homepage: string; }; //# sourceMappingURL=index.d.ts.map