Skip to content

Commit f4d2e5a

Browse files
authored
Finish asyncpg (#74)
* feat(asyncpg): Implement execresult command in Asyncpg driver (finish-asyncpg) * generated code * feat(asyncpg): Implement handling of CmdExecRows in asyncpg.go (issue #finish-asyncpg) * generated code * fragment * generated code * codecov badge * codecov yml * tests * tests * Feature/fix type error (#77) * feat(asyncpg): fix AsyncpgConn type declaration in AsyncpgDriverTypeCheckingHook function (fix-type-error) * generated code * blank line before typing block * generated code * feat: add QueryResults class for asyncpg driver(feature/finish-asyncpg) * feat(pyproject): Enable additional static analysis checks Issue: #feature/finish-asyncpg * refactor(noxfile): Use collections.abc instead of typing (feature/finish-asyncpg) * fix: Fix codecov badge URL casing inconsistency (feature/finish-asyncpg) * feat(queries): Add property method to return connection object Added a new property method to return the connection object used to make queries in the queries class. This enhances the usability and readability of the code. (issue #finish-asyncpg) * feat(asyncpg): add test_get_many_iterator for multiple PostgresType fields (finish-asyncpg) * generated code * codecov fix * fragments
1 parent b516121 commit f4d2e5a

41 files changed

Lines changed: 5823 additions & 688 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kind: Added
2+
body: Added support for query annotations `execrows` and `execresult` for driver `asyncpg`
3+
time: 2025-05-16T11:14:45.1597385+02:00
4+
custom:
5+
Author: rayakame
6+
PR: "74"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kind: Added
2+
body: Added `ConnectionLike` instead of `asyncpg.Connection` which allows also using connection pools
3+
time: 2025-05-18T00:31:52.6526507+02:00
4+
custom:
5+
Author: AlexanderHott
6+
PR: "74"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kind: Changed
2+
body: '`:many` queries now return `QueryResults` allowing both iteration over rows and fetching rows.'
3+
time: 2025-05-18T00:33:04.2388092+02:00
4+
custom:
5+
Author: rayakame
6+
PR: "74"

.coverage

8 KB
Binary file not shown.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# sqlc-gen-better-python
2+
[![Codecov](https://codecov.io/gh/rayakame/sqlc-gen-better-python/graph/badge.svg?token=LROCMXW6MC)](https://codecov.io/gh/rayakame/sqlc-gen-better-python)
3+
![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Frayakame%2Fsqlc-gen-better-python%2Fmain%2Fpyproject.toml)
4+
![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)
5+
26
A WASM plugin for SQLC allowing the generation of Python code.
37

48

codecov.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
codecov:
2+
bot: "Code Coverage"
3+
strict_yaml_branch: "main"
4+
max_report_age: 24

0 commit comments

Comments
 (0)