|
1 | 1 | # Code generated by sqlc. DO NOT EDIT. |
2 | 2 | # versions: |
3 | | -# sqlc v1.29.0 |
| 3 | +# sqlc v1.28.0 |
4 | 4 | # source: query.sql |
5 | | -from typing import Any, AsyncIterator, Iterator, List, Optional |
| 5 | +from typing import AsyncIterator, Iterator, Optional |
6 | 6 |
|
7 | 7 | import sqlalchemy |
8 | 8 | import sqlalchemy.ext.asyncio |
|
20 | 20 | """ |
21 | 21 |
|
22 | 22 |
|
23 | | -CREATE_AUTHORS_BATCH = """-- name: create_authors_batch \\:copyfrom |
24 | | -INSERT INTO authors (name, bio) VALUES (:p1, :p2) |
25 | | -""" |
26 | | - |
27 | | - |
28 | 23 | DELETE_AUTHOR = """-- name: delete_author \\:exec |
29 | 24 | DELETE FROM authors |
30 | 25 | WHERE id = :p1 |
@@ -57,10 +52,6 @@ def create_author(self, *, name: str, bio: Optional[str]) -> Optional[models.Aut |
57 | 52 | bio=row[2], |
58 | 53 | ) |
59 | 54 |
|
60 | | - def create_authors_batch(self, arg_list: List[Any]) -> int: |
61 | | - result = self._conn.execute(sqlalchemy.text(CREATE_AUTHORS_BATCH), arg_list) |
62 | | - return result.rowcount |
63 | | - |
64 | 55 | def delete_author(self, *, id: int) -> None: |
65 | 56 | self._conn.execute(sqlalchemy.text(DELETE_AUTHOR), {"p1": id}) |
66 | 57 |
|
@@ -98,10 +89,6 @@ async def create_author(self, *, name: str, bio: Optional[str]) -> Optional[mode |
98 | 89 | bio=row[2], |
99 | 90 | ) |
100 | 91 |
|
101 | | - async def create_authors_batch(self, arg_list: List[Any]) -> int: |
102 | | - result = await self._conn.execute(sqlalchemy.text(CREATE_AUTHORS_BATCH), arg_list) |
103 | | - return result.rowcount |
104 | | - |
105 | 92 | async def delete_author(self, *, id: int) -> None: |
106 | 93 | await self._conn.execute(sqlalchemy.text(DELETE_AUTHOR), {"p1": id}) |
107 | 94 |
|
|
0 commit comments