Skip to content

feat(adk): add postgres adapter profile toggles#554

Merged
cofin merged 27 commits into
mainfrom
feat/adk-postgres-profiles
Jun 30, 2026
Merged

feat(adk): add postgres adapter profile toggles#554
cofin merged 27 commits into
mainfrom
feat/adk-postgres-profiles

Conversation

@cofin

@cofin cofin commented Jun 29, 2026

Copy link
Copy Markdown
Member

Summary

  • Add PsycopgADKConfig and PsqlpyADKConfig as adapter-local ADK configs extending shared ADKConfig.
  • Keep PostgreSQL-family generated event columns and covering indexes opt-in through extension_config["adk"].
  • Extend asyncpg/psycopg/psqlpy tests for adapter-local config shape and default-vs-opt-in DDL behavior.

@codecov-commenter

codecov-commenter commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.30159% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.56%. Comparing base (14017de) to head (f86a9c8).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
sqlspec/adapters/psqlpy/adk/store.py 86.20% 2 Missing and 2 partials ⚠️
sqlspec/adapters/psycopg/adk/store.py 87.09% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #554      +/-   ##
==========================================
+ Coverage   75.51%   75.56%   +0.04%     
==========================================
  Files         445      445              
  Lines       58654    58918     +264     
  Branches     9028     9138     +110     
==========================================
+ Hits        44294    44522     +228     
- Misses      11501    11523      +22     
- Partials     2859     2873      +14     
Flag Coverage Δ
integration 59.56% <71.42%> (+0.03%) ⬆️
py3.10 73.93% <87.30%> (+0.05%) ⬆️
py3.11 73.95% <87.30%> (+0.05%) ⬆️
py3.12 73.94% <87.30%> (+0.05%) ⬆️
py3.13 73.94% <87.30%> (+0.05%) ⬆️
py3.14 74.75% <86.44%> (+0.04%) ⬆️
unit 61.50% <87.30%> (+0.14%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
sqlspec/adapters/psqlpy/adk/__init__.py 100.00% <100.00%> (ø)
sqlspec/adapters/psycopg/adk/__init__.py 100.00% <100.00%> (ø)
sqlspec/adapters/psqlpy/adk/store.py 52.26% <86.20%> (+2.55%) ⬆️
sqlspec/adapters/psycopg/adk/store.py 59.77% <87.09%> (+1.29%) ⬆️

... and 7 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Base automatically changed from feat/adk2-followup to main June 29, 2026 15:33
…files

# Conflicts:
#	tests/unit/adapters/test_asyncpg/test_adk_store.py
@cofin cofin marked this pull request as ready for review June 30, 2026 03:27
@cofin cofin merged commit 625d739 into main Jun 30, 2026
12 checks passed
@cofin cofin deleted the feat/adk-postgres-profiles branch June 30, 2026 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants