API Reference
Complete reference for all classes, methods, and configuration options.Core Classes
AnalyticalEngine
Main interface for the Ajna Analytical Engine.engine_config_path(Optional[Path]): Path to custom engine configuration YAMLdatasource_config_path(Optional[Path]): MANDATORY - Path to datasource configuration YAMLconfig_manager(Optional[ConfigManager]): Pre-configured ConfigManager instance
ConfigurationError: If datasource configuration is not provided (mandatory)
Methods
execute_query()
request(QueryRequest): Query specification
QueryResult: Query results with data and metadata
convert_sql_to_query()
request(SQLToQueryRequest): SQL conversion request
Dict[str, Any]: Native query specification as JSON
validate_query()
request(QueryRequest): Query to validateraise_on_error(bool): Whether to raise exception on validation errors
Dict[str, Any]: Validation results and suggestions
clear_cache()
analyze()
execute_query() instead. Provided for backward compatibility.
Data Models
QueryRequest
Type-safe query specification with comprehensive validation.Filter Operations
Join Operations
Window Functions
Aggregations
Supported functions:sum, avg, count, min, max, count_distinct, stddev, variance, median, percentile, mode
