named_dollar paramstyle
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Look at SQLAlchemy's paramstyle handling in lib/sqlalchemy/engine/default.py and lib/sqlalchemy/sql/compiler.py. Understand how numeric_dollar is implemented and where paramstyle constants are defined. Test with SQLite's named dollar parameters to see the current behavior and what changes are needed to support named_dollar. Check if any tests exist for paramstyles in test/engine/test_default.py.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the use case
asyncpg uses the numeric_dollar paramstyle, but SQLite has an affordance for a named_dollar style as well.
There is precedent for this naming, in SQL Params.
It would be nice to be able to add this style to SQLAlchemy for completeness.
Databases / Backends / Drivers targeted
SQLite.
Also, maybe, one day, PostgreSQL? While client parameters are still exclusively numbered, named SQL function parameters were added to PostgreSQL 9.2, which suggests maybe such a thing could be added to the driver interface eventually?
Example Use
N/A
Additional context
I'm trying to define a type-safe "paramstyle" parameter in DBXS while supporting this paramstyle for completeness, and SQLAlchemy support means I can't actually include it in the published type without triggering potential type errors.
I don't really need it but it would be nice to get it added in advance of any driver deciding this is a good way to do things, so this should be considered low-priority if at all.
- Ngôn ngữ chính
- Python
- Star
- 12.3k
- Fork
- 1.8k
- Merge trung bình
- 2 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 9
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của sqlalchemy/sqlalchemy
-
requires triage
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
sqlalchemy/sqlalchemy#13784 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug engine
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
sqlalchemy/sqlalchemy#13770 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
declared_attr.cascading fails to typecheck under mypy / pyright on documented usageCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởbug orm typing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
sqlalchemy/sqlalchemy#13731 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PostgreSQL multihost URL with bracketed IPv6 hosts raises ValueError: too many values to unpackCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởbug engine postgresql
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
sqlalchemy/sqlalchemy#13637 · 6 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
asyncpg dialect raises DBAPIError, not DataError, for SQLSTATE class 22 errorsCó thể đã có người làm @HardMax71 đã nhận 21 ngày trước. Đang mởbug code review in progress dialects
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
sqlalchemy/sqlalchemy#13636 · 19 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của sqlalchemy/sqlalchemy
Issue tương tự
-
SslLibrary crashes with unhandled OSError: port/proto not found on non-standard SSL portsCó thể đã có người làm @himanchalkaushale đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
OWASP/Nettacker#1884 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
A-connection-core C-enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
aws-samples/sample-per-model-bedrock#869 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Spec: say that included_antigen_sources gates LENS labels; do not merge it into antigen kindsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
fzn0x/watchtower#17 ·