Quickstart ========== .. code-block:: python from sql_query_tagger import SQLClassifier classifier = SQLClassifier(engine="postgresql", version="16") result = classifier.classify_query("SELECT * FROM users WHERE id = 1 OR 1=1") print(result.query_type) # QueryType.DQL print(result.security_analysis.risk_level) # RiskLevel.HIGH print(result.security_analysis.detected_patterns) print(result.security_analysis.recommendation) Every call to :meth:`~sql_query_tagger.SQLClassifier.classify_query` returns a :class:`~sql_query_tagger.ClassificationResult` with the query type, a full :class:`~sql_query_tagger.SecurityAnalysis`, the cleaned query text, and timing metadata. See :doc:`usage` for more end-to-end examples, and :doc:`supported_engines` for the full engine/version matrix.