Skip to content

Commit

Permalink
Merge pull request #13 from volfpeter/include-implicitly-defined-fiel…
Browse files Browse the repository at this point in the history
…ds-for-insert-operations

Add a ServiceConfig dict
  • Loading branch information
volfpeter authored Nov 9, 2024
2 parents d304533 + 765e81a commit 19027b1
Show file tree
Hide file tree
Showing 34 changed files with 271 additions and 173 deletions.
3 changes: 0 additions & 3 deletions docs/api-bound-method-wrapper.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/api-delete-rule.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/api-model-deleteresultmodel.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/api-model-document.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/api-model-objectid.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/api-model-utcdatetime.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/api-operator.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/api-query.md

This file was deleted.

5 changes: 0 additions & 5 deletions docs/api-service.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/api-typing.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/api-validator.md

This file was deleted.

4 changes: 4 additions & 0 deletions docs/api/bound-method-wrapper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ::: motorhead.bound_method_wrapper

options:
show_root_heading: true
4 changes: 4 additions & 0 deletions docs/api/delete-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ::: motorhead.delete_rule

options:
show_root_heading: true
4 changes: 4 additions & 0 deletions docs/api/model/deleteresultmodel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ::: motorhead.model.deleteresultmodel

options:
show_root_heading: true
4 changes: 4 additions & 0 deletions docs/api/model/document.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ::: motorhead.model.document

options:
show_root_heading: true
4 changes: 4 additions & 0 deletions docs/api/model/objectid.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ::: motorhead.model.objectid

options:
show_root_heading: true
4 changes: 4 additions & 0 deletions docs/api/model/utcdatetime.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ::: motorhead.model.utcdatetime

options:
show_root_heading: true
4 changes: 4 additions & 0 deletions docs/api/operator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ::: motorhead.operator

options:
show_root_heading: true
4 changes: 4 additions & 0 deletions docs/api/query.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ::: motorhead.query

options:
show_root_heading: true
5 changes: 5 additions & 0 deletions docs/api/service.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# ::: motorhead.service

options:
filters: None
show_root_heading: true
4 changes: 4 additions & 0 deletions docs/api/typing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ::: motorhead.typing

options:
show_root_heading: true
4 changes: 4 additions & 0 deletions docs/api/validator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ::: motorhead.validator

options:
show_root_heading: true
23 changes: 12 additions & 11 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ theme:
icon: material/brightness-4
name: Switch to light mode
features:
- navigation.indexes
- navigation.instant
- navigation.tracking
- search.suggest
Expand Down Expand Up @@ -45,15 +46,15 @@ nav:
- Examples:
- FastAPI: fastapi-example.md
- API Reference:
- api-service.md
- api-query.md
- api-operator.md
- api/service.md
- api/query.md
- api/operator.md
- Model:
- api-model-document.md
- api-model-objectid.md
- api-model-utcdatetime.md
- api-model-deleteresultmodel.md
- api-delete-rule.md
- api-validator.md
- api-typing.md
- api-bound-method-wrapper.md
- api/model/document.md
- api/model/objectid.md
- api/model/utcdatetime.md
- api/model/deleteresultmodel.md
- api/delete-rule.md
- api/validator.md
- api/typing.md
- api/bound-method-wrapper.md
5 changes: 5 additions & 0 deletions motorhead/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,16 @@
from .service import InsertManyResult as InsertManyResult
from .service import InsertOneResult as InsertOneResult
from .service import Service as Service
from .service import ServiceConfig as ServiceConfig
from .service import ServiceException as ServiceException
from .service import UpdateResult as UpdateResult
from .typing import AgnosticClient as AgnosticClient
from .typing import AgnosticClientSession as AgnosticClientSession
from .typing import AgnosticCollection as AgnosticCollection
from .typing import AgnosticCommandCursor as AgnosticCommandCursor
from .typing import AgnosticCursor as AgnosticCursor
from .typing import AgnosticDatabase as AgnosticDatabase
from .typing import AgnosticLatentCommandCursor as AgnosticLatentCommandCursor
from .typing import Clause as Clause
from .typing import ClauseOrMongoQuery as ClauseOrMongoQuery
from .typing import ClauseOrProjecttion as ClauseOrProjecttion
Expand Down
3 changes: 1 addition & 2 deletions motorhead/delete_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
)


class DeleteError(Exception):
...
class DeleteError(Exception): ...


TOwner = TypeVar("TOwner")
Expand Down
Loading

0 comments on commit 19027b1

Please sign in to comment.