sql-metadata is a Python library that parses SQL queries to extract metadata such as table names, column names, query type (e.g., SELECT, INSERT, UPDATE, DELETE), and more. It leverages the tokenized query output from the `sqlparse` library. The current version is 2.20.0, and it maintains an active release cadence, often releasing minor versions to improve parsing accuracy and update its `sqlparse` dependency.
Verified import paths — ran on the pinned version, not inferred.
Initialize a Parser object with a SQL string to extract various metadata attributes.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.