Skip to content

Commit 28736a4

Browse files
committed
refactor(database): update BaseController documentation for clarity
- Revised the documentation in BaseController to enhance clarity regarding the delegation of operations to specialized controllers. - Maintained the focus on separation of concerns while preserving the original functionality and lazy initialization strategy for specialized controllers.
1 parent f11e33f commit 28736a4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/tux/database/controllers/base/base_controller.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ class BaseController[ModelT]:
2121
"""
2222
Composed database controller with lazy-loaded specialized operations.
2323
24-
This controller delegates operations to specialized controllers while
25-
maintaining backward compatibility with the original BaseController API.
26-
Core CRUD and Query controllers are eagerly initialized, while specialized
27-
controllers (bulk, transaction, upsert) use lazy initialization to reduce
28-
overhead for simple use cases.
24+
This controller delegates operations to specialized controllers for clean
25+
separation of concerns. Core CRUD and Query controllers are eagerly
26+
initialized, while specialized controllers (bulk, transaction, upsert) use
27+
lazy initialization to reduce overhead for simple use cases.
2928
"""
3029

3130
def __init__(self, model: type[ModelT], db: DatabaseService | None = None) -> None:

0 commit comments

Comments
 (0)