Skip to content

Commit 887173a

Browse files
committed
add relationship v2
1 parent 7f9a1da commit 887173a

File tree

8 files changed

+1053
-2
lines changed

8 files changed

+1053
-2
lines changed

pynamodb_mate/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def get_one_or_none(
131131
range_key: T.Optional[T.Any] = None,
132132
consistent_read: bool = False,
133133
attributes_to_get: T.Optional[T.Sequence[str]] = None,
134-
) -> T.Optional["Model"]:
134+
) -> T.Optional["T_MODEL"]:
135135
"""
136136
Get one Dynamodb item object or None if not exists.
137137

pynamodb_mate/patterns/api.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
from .cache import api as cache
44
from .large_attribute import api as large_attribute
55
from .relationship import api as relationship
6+
from .relationship_v2 import api as relationship_v2
67
from .status_tracker import api as status_tracker
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# -*- coding: utf-8 -*-
2+
3+
"""
4+
This Python module streamlines the creation of well-structured one-to-many and
5+
many-to-many relationship data models for Amazon DynamoDB. With its intuitive design,
6+
developers can swiftly implement business operations in code,
7+
enabling efficient development of DynamoDB-backed applications.
8+
"""
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# -*- coding: utf-8 -*-
2+
3+
from .impl import BaseLookupIndex
4+
from .impl import BaseEntity
5+
from .impl import T_BASE_ENTITY
6+
from .impl import ROOT
7+
from .impl import ItemType
8+
from .impl import EntityType
9+
from .impl import RelationshipType
10+
from .impl import OneToManyRelationshipType
11+
from .impl import ManyToManyRelationshipType

0 commit comments

Comments
 (0)