Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/infrastructure/mongo/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(
database: AsyncDatabase[MongoDocument],
session: AsyncClientSession | None = None,
) -> None:
self.repository = AsyncMongoRepository[Container].from_spec(
self.repository = AsyncMongoRepository[Container].from_binding(
binding=self,
database=database,
session=session,
Expand Down
2 changes: 1 addition & 1 deletion app/infrastructure/mongo/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(
database: AsyncDatabase[MongoDocument],
session: AsyncClientSession | None = None,
) -> None:
self.repository = AsyncMongoRepository[Item].from_spec(
self.repository = AsyncMongoRepository[Item].from_binding(
binding=self,
database=database,
session=session,
Expand Down
2 changes: 1 addition & 1 deletion app/infrastructure/sql/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ContainerSQLRepository(ContainerRepositoryProtocol):

def __init__(self, session: AsyncSession) -> None:
self.session = session
self.repository = ContainerSQLAdapter.from_spec(
self.repository = ContainerSQLAdapter.from_binding(
binding=self,
session=session,
)
Expand Down
2 changes: 1 addition & 1 deletion app/infrastructure/sql/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ItemSQLRepository(ItemRepositoryProtocol):

def __init__(self, session: AsyncSession) -> None:
self.session = session
self.repository = AsyncSQLRepository[Item, OrmItem].from_spec(
self.repository = AsyncSQLRepository[Item, OrmItem].from_binding(
binding=self,
session=session,
)
Expand Down
2 changes: 1 addition & 1 deletion cleanstack/mongo/asynchronous/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(
self.session = session

@classmethod
def from_spec(
def from_binding(
cls,
binding: MongoBinding[T],
database: AsyncDatabase[MongoDocument],
Expand Down
2 changes: 1 addition & 1 deletion cleanstack/mongo/synchronous/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(
self.session = session

@classmethod
def from_spec(
def from_binding(
cls,
binding: MongoBinding[T],
database: Database[MongoDocument],
Expand Down
2 changes: 1 addition & 1 deletion cleanstack/sql/asynchronous/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(
self.session = session

@classmethod
def from_spec(
def from_binding(
cls,
binding: SQLBinding[T, OrmT],
session: AsyncSession,
Expand Down
2 changes: 1 addition & 1 deletion cleanstack/sql/synchronous/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(
self.session = session

@classmethod
def from_spec(
def from_binding(
cls,
binding: SQLBinding[T, OrmT],
session: Session,
Expand Down