
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
sql-compare
Advanced tools
Compare SQL schemas.
This package allows to compare two SQL files (or strings) to know whether their statements are the same or not. The comparison doesn't care about the order of the columns in a table or the order of the values in an enumerator. It also excludes irrelevant data like comments.
Its main usage is to compare the schemas of two databases (e.g. staging and production). See this blog post that tells about the creation of the package.
$ pip install sql-compare
Compare two SQL schemas using strings.
import sql_compare
assert sql_compare.compare(first_schema, second_schema)
Compare two SQL schemas using files.
import pathlib
import sql_compare
first_schema = pathlib.Path("/path/to/schema.sql")
second_schema = pathlib.Path("/path/to/other/schema.sql")
assert sql_compare.compare_files(first_schema, second_schema)
SQL Compare relies on sqlparse
to parse SQL statements.
FAQs
Compare SQL schemas
We found that sql-compare demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.