migrate db.find_ratings to SQLAlchemy
This commit is contained in:
parent
d4933bf1a6
commit
1a3528e096
3 changed files with 54 additions and 55 deletions
|
|
@ -12,8 +12,8 @@ from typing import (
|
|||
Literal,
|
||||
Mapping,
|
||||
Type,
|
||||
TypeVar,
|
||||
TypedDict,
|
||||
TypeVar,
|
||||
Union,
|
||||
get_args,
|
||||
get_origin,
|
||||
|
|
@ -318,6 +318,8 @@ class Movie:
|
|||
self._is_lazy = False
|
||||
|
||||
|
||||
movies = Movie.__table__
|
||||
|
||||
_RelationSentinel = object()
|
||||
"""Mark a model field as containing external data.
|
||||
|
||||
|
|
@ -372,6 +374,8 @@ class Rating:
|
|||
)
|
||||
|
||||
|
||||
ratings = Rating.__table__
|
||||
|
||||
Access = Literal[
|
||||
"r", # read
|
||||
"i", # index
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue