Skip to main content
SchemaCrawler logo

SchemaCrawler Review

CategoryDatabase TestingFirst ReleasedNot statedOfficial SiteDeploymentSelf-hosted
Licensing Model
Free & Open Source
  • Jars: EPL 2.0, GPLv3 or LGPLv3 (your choice)
  • Bundled-driver downloads: GPLv3 only
  • Docker image: GPLv3
  • No paid edition
Free Plan
Free
  • Everything is free
  • Needs Java SE 17 or later
  • Graphviz needed for image diagrams
  • Drivers bundled for common databases
Maintainer
Sualeh Fatehi
  • Copyright holder, 2000–2026
  • Ecosystem work by Adrien Sales, Benjamin KΓΆnig
  • GitHub repository since July 2015
  • Latest: v18.0.3, 17 Nov 2026
Ratings
  • GitHub stars1.8K
  • G2N/A
  • GartnerN/A

Overview

SchemaCrawler is a free, open-source database schema discovery and comprehension tool, maintained by Sualeh Fatehi and developed on GitHub since July 2015. It connects to almost any database with a JDBC driver, reads the schema (tables, columns, keys, indexes, routines and more) and outputs it as readable text, HTML, JSON or diagrams. It is also a Java API for database metadata.

For testing, its value is in checking schemas, not data. Its text output is designed to be diffed, so a snapshot of the expected schema can be compared with a live database in CI to catch drift between environments. Its linter flags design problems such as foreign keys without indexes or tables without primary keys, and it can run JavaScript or Python scripts against a live connection.

SchemaCrawler fits teams that want to keep database schemas consistent and well designed across environments, and that work with several database vendors. Buyers should note that it doesn't test data or stored-procedure behaviour, that it needs Java 17 or later, that image diagrams need Graphviz, and that the convenient bundled-driver downloads and Docker image are GPLv3-only.

Key Features​

Schema Discovery​

SchemaCrawler reads database metadata and lets you search for schema objects with regular expressions, then outputs the schema and data as readable text.

Diff-Friendly Output​

Output is designed to be compared against other schemas, including schemas on servers from different database vendors, so a stored snapshot can be diffed against a live database.

Schema Linting​

22 built-in lints catch design issues, including foreign keys without indexes, tables with no primary key, redundant indexes, nullable columns in unique indexes, mismatched column types and cyclical table relationships. Custom lints can run SQL per table, and each lint is configurable.

Diagrams​

Schema diagrams can be produced in any Graphviz format (PNG, SVG, PDF and more), embedded as SVG in HTML, or written as Mermaid, PlantUML, DBML or QuickDBD files.

Scripting​

JavaScript or Python scripts can run against a live database connection for custom checks and reports.

Structured Documentation​

SchemaCrawler Scribe generates structured documentation in Google OKF format.

Interactive Shell​

An interactive shell (schemacrawler --shell) lets you explore a database step by step, in the CLI or the Docker image.

Best Selling Points​

  • Works with almost any database that has a JDBC driver.
  • Catches schema drift between environments through diffable output.
  • 22 configurable design lints.
  • Diagrams in Graphviz, Mermaid, PlantUML and DBML formats.
  • Free, open source and actively maintained (v18.0.3 on 17 November 2026).
  • Available as a CLI, Java library, Maven plugin and Docker image.

Supported Integrations​

Distribution

  • Docker (schemacrawler/schemacrawler)
  • Maven Central
  • Maven reporting plugin
  • Scoop (Windows)
  • Chocolatey (Windows)
  • Platform installers

Output and Diagram Formats

  • Text and HTML
  • JSON
  • Graphviz (PNG, SVG, PDF)
  • Mermaid
  • PlantUML
  • DBML

Scripting

  • JavaScript
  • Python

SchemaCrawler is a community open-source project and doesn't publish a user list.

Supported Databases​

JDBC drivers included in the SchemaCrawler download.

  • PostgreSQL
  • MySQL
  • Oracle
  • SQL Server
  • DB2
  • SQLite

Database Details​

  • Bundled drivers: SQLite, Oracle, SQL Server, DB2, MySQL, PostgreSQL, Trino and Cassandra.
  • Any other JDBC database: place its JDBC driver in the lib folder.
  • Proprietary drivers: some free but proprietary drivers must be downloaded separately; the Docker image can be extended with them.
  • Extra plugins: unsupported plugins for Oracle TimesTen and SAP IQ live in the SchemaCrawler-Database-Plugins project.

How Tests Run​

  • Schema snapshot check: generate a text snapshot of the expected schema, store it in Git, and in CI run SchemaCrawler against the live database and diff the output against the snapshot.
  • Lint in CI: run the linter with a configuration listing which lints to use and their settings, and review the reported issues.
  • Runtimes: any operating system with Java SE 17 or later; the official Docker images use Java 25 since v18.0.1 (October 2026).
  • Security in output: since v18.0.2 (November 2026), failure messages show database fingerprints instead of raw URLs and credentials.

Reporting​

Key Reporting Features​

  • Text, HTML and JSON schema reports.
  • Lint reports listing each issue with its table and severity.
  • Schema diagrams in many formats.
  • Structured documentation through SchemaCrawler Scribe.

Security & Compliance​

SchemaCrawler runs on your own machine or CI runner and connects directly to your database, so schema data stays in your environment. Since v18.0.2 it hides connection URLs and credentials in failure messages and applies stricter Java deserialization checks, and the Docker image is attested. The project publishes no certifications.

Pricing​

SchemaCrawler is free.

DistributionPriceLicence
Jars from Maven Central / built from source$0Your choice of EPL 2.0, GPLv3 or LGPLv3
Main download, bundled distributions, Docker image$0GPLv3 only (they include JDBC drivers)
  • There are no paid editions or support plans.

Strengths​

  • Database-agnostic: one tool across many vendors.
  • Diffable schema snapshots make schema drift easy to catch.
  • A useful set of design lints out of the box.
  • Many diagram and documentation formats.
  • Frequent releases and long-running maintenance.
  • Flexible licensing for library use.

Limitations​

  • Checks schemas only; it doesn't test data or stored-procedure logic.
  • Needs Java 17 or later.
  • Image diagrams need Graphviz installed.
  • Bundled-driver downloads and the Docker image are GPLv3-only.
  • Lint thresholds for failing a CI build aren't explained on the lint page.
  • Effectively maintained by one main developer.

Best Fit Scenarios​

  • Teams that need to catch schema drift between development, staging and production.
  • Organisations using several database vendors that want one schema tool.
  • Database reviews that need automated design linting.
  • Teams generating schema documentation and ER diagrams from live databases.
  • CI pipelines that compare schema snapshots on every migration.
  • Java teams that want programmatic access to database metadata.