Skip to content

Commit c6eeafa

Browse files
committed
Small spacing changes
1 parent 5235b2c commit c6eeafa

File tree

9 files changed

+11
-16
lines changed

9 files changed

+11
-16
lines changed

examples/python/src/authors/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from typing import Optional
44

55

6+
67
@dataclasses.dataclass()
78
class Author:
89
id: int

examples/python/src/authors/query.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Code generated by sqlc. DO NOT EDIT.
32
from typing import AsyncIterator, Iterator, Optional
43

@@ -8,6 +7,7 @@
87
from authors import models
98

109

10+
1111
CREATE_AUTHOR = """-- name: create_author \\:one
1212
INSERT INTO authors (
1313
name, bio
@@ -108,4 +108,3 @@ async def list_authors(self) -> AsyncIterator[models.Author]:
108108
name=row[1],
109109
bio=row[2],
110110
)
111-

examples/python/src/booktest/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from typing import List
66

77

8+
89
class BookType(str, enum.Enum):
910
FICTION = "FICTION"
1011
NONFICTION = "NONFICTION"

examples/python/src/booktest/query.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
21
# Code generated by sqlc. DO NOT EDIT.
3-
from typing import AsyncIterator, List, Optional
42
import dataclasses
53
import datetime
4+
from typing import AsyncIterator, List, Optional
65

76
import sqlalchemy
87
import sqlalchemy.ext.asyncio
98

109
from booktest import models
1110

1211

12+
1313
BOOKS_BY_TAGS = """-- name: books_by_tags \\:many
1414
SELECT
1515
book_id,
@@ -109,7 +109,6 @@ class CreateBookParams:
109109
"""
110110

111111

112-
113112
class AsyncQuerier:
114113
def __init__(self, conn: sqlalchemy.ext.asyncio.AsyncConnection):
115114
self._conn = conn
@@ -208,4 +207,3 @@ async def update_book_isbn(self, *, title: str, tags: List[str], book_id: int, i
208207
"p3": book_id,
209208
"p4": isbn,
210209
})
211-

examples/python/src/jets/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import dataclasses
33

44

5+
56
@dataclasses.dataclass()
67
class Jet:
78
id: int

examples/python/src/jets/query-building.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Code generated by sqlc. DO NOT EDIT.
32
from typing import AsyncIterator, Optional
43

@@ -8,6 +7,7 @@
87
from jets import models
98

109

10+
1111
COUNT_PILOTS = """-- name: count_pilots \\:one
1212
SELECT COUNT(*) FROM pilots
1313
"""
@@ -23,7 +23,6 @@
2323
"""
2424

2525

26-
2726
class AsyncQuerier:
2827
def __init__(self, conn: sqlalchemy.ext.asyncio.AsyncConnection):
2928
self._conn = conn
@@ -44,4 +43,3 @@ async def list_pilots(self) -> AsyncIterator[models.Pilot]:
4443
id=row[0],
4544
name=row[1],
4645
)
47-

examples/python/src/ondeck/city.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Code generated by sqlc. DO NOT EDIT.
32
from typing import AsyncIterator, Optional
43

@@ -8,6 +7,7 @@
87
from ondeck import models
98

109

10+
1111
CREATE_CITY = """-- name: create_city \\:one
1212
INSERT INTO city (
1313
name,
@@ -40,7 +40,6 @@
4040
"""
4141

4242

43-
4443
class AsyncQuerier:
4544
def __init__(self, conn: sqlalchemy.ext.asyncio.AsyncConnection):
4645
self._conn = conn
@@ -73,4 +72,3 @@ async def list_cities(self) -> AsyncIterator[models.City]:
7372

7473
async def update_city_name(self, *, slug: str, name: str) -> None:
7574
await self._conn.execute(sqlalchemy.text(UPDATE_CITY_NAME), {"p1": slug, "p2": name})
76-

examples/python/src/ondeck/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from typing import List, Optional
66

77

8+
89
class Status(str, enum.Enum):
910
"""Venues can be either open or closed"""
1011
OPEN = "op!en"

examples/python/src/ondeck/venue.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
21
# Code generated by sqlc. DO NOT EDIT.
3-
from typing import AsyncIterator, List, Optional
42
import dataclasses
3+
from typing import AsyncIterator, List, Optional
54

65
import sqlalchemy
76
import sqlalchemy.ext.asyncio
87

98
from ondeck import models
109

1110

11+
1212
CREATE_VENUE = """-- name: create_venue \\:one
1313
INSERT INTO venue (
1414
slug,
@@ -88,7 +88,6 @@ class VenueCountByCityRow:
8888
count: int
8989

9090

91-
9291
class AsyncQuerier:
9392
def __init__(self, conn: sqlalchemy.ext.asyncio.AsyncConnection):
9493
self._conn = conn
@@ -156,4 +155,3 @@ async def venue_count_by_city(self) -> AsyncIterator[VenueCountByCityRow]:
156155
city=row[0],
157156
count=row[1],
158157
)
159-

0 commit comments

Comments
 (0)