-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👌Improve: Spruce up
orm.Entity.fields
interface
This commit first ensures that all query operations are supported in the new syntax, including negation. The commit also separates the operations by field type via subclassing. It introduces a uniform `orm.fields.add_field` API as an abstraction of the type-dependent allocation of `orm.fields.QbField` flavors. A distinction is made in the API between database columns and attribute fields via the `is_attribute` parameter. If set to `True` (the default), the field is considered an attribute field and as such, `QbField().backend_key` will return `'attribute.key'` in accordance with the `QueryBuilder` mechanics. Note that _only_ in the case of attribute fields, `backend_key` may be aliased via the `alias` parameter. This is done to avoid restrictions on database field naming while maintaining a pythonic interface in the frontend via the `key` parameter, which is validated as pythonic (supporting dot notation).
- Loading branch information
1 parent
4b9abe2
commit 6dd8eca
Showing
74 changed files
with
1,853 additions
and
924 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.