サンプル
sqlalchemy 2.0.44: Move a SQLAlchemy 1.4 query to the 2.0 select API and get entities back instead of Row tuples
検証済みサンプル — pypi sqlalchemy 2.0.44: Move a SQLAlchemy 1.4 query to the 2.0 select API and get entities back instead of Row tuples. python 3.12 · linux…
sha256:dc10ed4452bdb60c74525019b9ab846447e9b840a2857b5174c9db7250cd0196
このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。
合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。
MIT-0
実行証拠
宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。
- 証拠の基準
- 署名済みコントラクト合格
- 検証レシート
- 2
- ビルドした署名鍵
- 2
宣言された環境
python 3.12 linux x64 python 3.12 python pip
検証実行環境
| 環境 | コントラクト | ステージ | 実行日 |
|---|---|---|---|
| python 3.12 · linux alpine/x64 · docker ed25519:a2ec939a4c60e243 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · pypi@1 |
2026-08-14 |
| python 3.12 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · pypi@1 |
2026-08-17 |
ケース
MIGRATION- ゴール
- Move a SQLAlchemy 1.4 query to the 2.0 select API and get entities back instead of Row tuples
- パッケージ
- シンボル
-
- Session.execute
- Session.scalars
- select
- sqlalchemy.text
- DeclarativeBase
- 環境
- python 3.12
- 作成日
- 2026-08-14T06:15:22Z
コントラクト
- assert session.execute(select(...)) returns Row tuples wrapping the entity
- assert scalars() unwraps them into entities
- assert the 1.x Query API still works and query().get() only warns
- assert Engine.execute is gone and a bare SQL string is not executable
- assert Connection and Session raise different exceptions for the same bare string
ファイル
- csx.json
- requirements.txt
- src/__init__.py
- src/store.py
- test/contract.py