Repository navigation
chore(release): prepare v0.70.0 release, documentation overhaul, and adapter refinements - #874
Merged
Merged
Conversation
…adapter refinements
…n, db2 migration timestamps, and dialect catalog metadata Restore transpilation for covering index INCLUDE clauses in CreateIndex, add explicit UTC timestamp binding to Db2 migration trackers, and align SQLite composite foreign key and SQL Server catalog metadata queries.
…ocs, and annotate migration tests
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #874 +/- ##
==========================================
+ Coverage 80.40% 80.44% +0.04%
==========================================
Files 562 561 -1
Lines 100697 101618 +921
Branches 19414 19754 +340
==========================================
+ Hits 80968 81751 +783
- Misses 14597 14638 +41
- Partials 5132 5229 +97
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
…ration overloads, and clean up cli cast
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Prepares the
v0.70.0release alongside a documentation overhaul, generated data dictionary dialect references, DuckDB native relation Arrow materialization, DDL synthesis and migration squash refinements, and self-contained mypyc-compiled adaptercore.pymodules.Key Changes
Documentation & API Reference (
docs/,README.md,zensical.toml,tools/docs/)docs/reference/data-dictionary/dialects/) coveringDialectConfigsettings and all 336 named SQL catalog queries across 13 database dialects viatools/docs/generate_data_dictionary_docs.py, wired intoMakefile(docs-generate) and.github/workflows/docs.yml(--check).docs/reference/adapters/sqlanywhere.md) and Sybase ASE (docs/reference/adapters/sybase.md), and updatedREADME.mdand documentation adapter tables across all 22 database adapters.mkdocstrings-pythonAPI rendering (inherited_members: true, source code links, signature annotations, symbol type badges) and compact layout rules indocs/stylesheets/extra.cssandtools/docs/templates/python/material/.pymdownx.tabbed(uv,pip,pdm,poetry) tabs, added side-by-sideSQLandPythontabbed examples forSQLFileLoader, and updated conceptual Mermaid diagrams acrossdocs/.Database Adapters (
sqlspec/adapters/)DuckDBDriver(sqlspec/adapters/duckdb/driver.py) Arrow table and record-batch reader materialization (select_to_arrow,_execute_and_materialize_select,_open_stream_reader) from DB-APIcursor.execute(...).to_arrow_table()tocursor.sql(query, params=...).to_arrow_table()/to_arrow_reader(), avoiding DuckDB 2.0's extra row copy andUserWarning.core.py(sqlspec/adapters/{aiomysql,asyncmy,mysqlconnector,pymysql}/core.py) and removedsqlspec/adapters/mysql_common.py.create_duckdb_profile_path,cleanup_duckdb_profile_path,read_duckdb_profile_json) self-contained insidesqlspec/adapters/adbc/core.pyandsqlspec/adapters/duckdb/core.py.Db2DataDictionary.get_columns(sqlspec/adapters/db2/data_dictionary.py) to constructColumnMetadatadirectly whenschema_nameis already resolved on rows.Migrations, CLI & DDL Synthesis (
sqlspec/migrations/,sqlspec/builder/,sqlspec/cli.py,sqlspec/data_dictionary/)SyncMigrationCommandsandAsyncMigrationCommands(sqlspec/migrations/commands.py) to propagateechoandsummaryflags inupgrade(),downgrade(), andstamp(), and alignedsquash()(dry_run,yes,allow_gaps,output_format,update_database) across sync/async command classes and the CLI (sqlspec/cli.py).MigrationSquasher(sqlspec/migrations/squash.py) andSchemaDDLSynthesizer(sqlspec/builder/_ddl.py) to preserve companion.sqlsidecar statements alongside Python migrations, quote reserved-keyword column/index identifiers via SQLGlot dialect rules, group SQLite unnamed composite foreign keys, and support native schema DDL extraction across PostgreSQL, DuckDB, and SQL Server (sqlspec/data_dictionary/dialects/{postgres,duckdb,mssql,sqlite,spanner}/sql/).read_json_fixtureandwrite_json_fixture(sqlspec/utils/fixtures.py) against path traversal outside the base fixtures directory.Release & Dependencies (
pyproject.toml,uv.lock,docs/changelog.md,.github/workflows/)0.70.0, upgraded lockfile dependencies (make upgrade), pinnedactions/github-scriptto its full commit SHA in.github/workflows/ci.yml, and updateddocs/changelog.mdforv0.70.0.