Repository navigation
Warehouse MySQL
The
mysqlreader crawls MySQL and MariaDB schemas (databases) frominformation_schema, including comments, row estimates and enforced keys. Statistics may be cached for up to a day on MySQL 8, so row counts and change times can lag; incremental listing is supported. Validated against a real MySQL 8.4 server in CI (service container).
Dialect name: mysql (extra: pip install schemaguru[mysql], driver pymysql).
information_schema.{schemata, tables, columns, table_constraints, key_column_usage}. A MySQL
schema is a database; refs carry no catalog (table_catalog is always def).
MySQL 8 accounts default to caching_sha2_password; pymysql needs the cryptography package
(pip install cryptography) to log in with one over a non-TLS connection.
information_schema shows only what the account may access, so grant SELECT (or any privilege)
on the schemas to crawl. No access to mysql.* or performance_schema is needed. Nothing is
written.
Metadata queries only; no table data is read. Each page and each batch of up to 200 tables is
one query against information_schema. On servers with many thousands of tables MySQL 8 may
serve statistics from a cache (see below), which keeps the queries cheap.
Comments (table and column), row estimate and size, creation and last-alteration time, primary
keys, unique keys and foreign keys (enforced=True; InnoDB enforces them). Incremental listing
(changed_since) is supported.
-
TABLE_ROWSis an estimate for InnoDB and may be cached forinformation_schema_stats_expiryseconds (default 24 h in MySQL 8), sorow_count,bytesandlast_alteredcan lag. It is unknown (None) for views. -
update_timeisNULLfor tables never written since the server started; such a table is always included by an incremental listing rather than assumed unchanged. Timestamps are converted from the session time zone to UTC in SQL. - Column names are aliased everywhere because MySQL 8 upper-cases
information_schemacolumn names. - MariaDB reports a column default of
NULLas the wordNULLand quotes string literals; the reader normalises both to MySQL's form. Some MariaDB versions return nocreate_timefor views. - View column nullability is reported as unknown (
None). - Tables are ordered and paged by binary name, so tables whose names differ only in case page correctly.
- Catalog-and-Crawl
- Refresh-and-Drift (incremental refresh)
- Scale-and-Cost
- Extending-CatalogReader
SchemaGuru is open source under the MIT License, Copyright (c) 2026 Rupak Chakraborty · Repository · Issues · This wiki is generated from docs/wiki/; edit it there, not here.
Start here
Components
- Catalog and Crawl
- Store
- Measurement
- Sampling
- Join Graph
- Path Search and Hub Guard
- Waypoint Rules
- Drafting
- PII and Sampling Policy
- Overlays
- Scoping
- Rendering
- Refresh and Drift
- Feedback and Guard
- Server
- Agent Integration
Using it
Warehouses
- BigQuery
- Snowflake
- Redshift
- Databricks
- PostgreSQL
- DuckDB
- ClickHouse
- SQL Server / Synapse
- Oracle
- Trino
- MySQL / MariaDB
Extending
- CatalogReader
- Store
- Retriever and Embedder
- TokenCounter
- LLMProvider
- PII Detector
- FailureClassifier
- FactKind
- Profile and Format
- ChangeClassifier
- JoinCandidateSource (planned)
- Authenticator
Project