Skip to content

fix(storage): resolve Windows SQL file paths - #696

Merged
cofin merged 2 commits into
mainfrom
fix/windows-path
Aug 10, 2026
Merged

fix(storage): resolve Windows SQL file paths#696
cofin merged 2 commits into
mainfrom
fix/windows-path

Conversation

@cofin

@cofin cofin commented Aug 10, 2026

Copy link
Copy Markdown
Member

Fixes #693.

StorageRegistry.get() built Windows local paths as file://C:\\..., which placed the drive path in the URI authority and left the filesystem path empty.

This centralizes local backend URI construction with an empty authority, adds nested Path and Windows drive-path coverage, and exercises named SQL file loading in the compiled-wheel smoke.

Validation: focused storage/loader/mypyc tests, standalone mypyc smoke, and repository lint/type checks.

@codecov-commenter

codecov-commenter commented Aug 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.39%. Comparing base (19cbff9) to head (e656bf3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #696   +/-   ##
=======================================
  Coverage   77.39%   77.39%           
=======================================
  Files         486      486           
  Lines       68281    68287    +6     
  Branches     9405     9406    +1     
=======================================
+ Hits        52847    52853    +6     
  Misses      12024    12024           
  Partials     3410     3410           
Flag Coverage Δ
integration 60.86% <77.77%> (+0.01%) ⬆️
py3.10 75.71% <100.00%> (+<0.01%) ⬆️
py3.11 75.72% <100.00%> (-0.01%) ⬇️
py3.12 75.72% <100.00%> (-0.01%) ⬇️
py3.13 75.72% <100.00%> (+<0.01%) ⬆️
py3.14 76.61% <100.00%> (+<0.01%) ⬆️
unit 65.03% <100.00%> (+<0.01%) ⬆️

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

Files with missing lines Coverage Δ
sqlspec/storage/registry.py 75.14% <100.00%> (+0.87%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cofin
cofin marked this pull request as ready for review August 10, 2026 21:17
@cofin cofin changed the title fix(#693): resolve Windows SQL file paths fix(storage): resolve Windows SQL file paths Aug 10, 2026
@cofin
cofin merged commit ea00178 into main Aug 10, 2026
26 of 28 checks passed
@cofin
cofin deleted the fix/windows-path branch August 10, 2026 21:18
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.

Bug: Sql file loader does not resolve paths correctly on Windows

2 participants