You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Performing a query that retrieves records with only specific fields is a useful features. Occasionally, I need to be able to detect later in the same session if a record was retrieved in this way or if I can expect all fields to be defined. It would be great if there was an "is_partial" (name negotiable) method or attribute that would indicate if a record was retrieved with select fields.
The text was updated successfully, but these errors were encountered:
This would be a great candidate for a Processor. There is some powerful stuff in the adapter architecture within Pyperry. Take a look at the abstract_adapter module for an explanation of what a Processor and Middleware are. A processor will give you the ability to hook some code into every query that is made through the adapter, and you can modify the resulting objects that were created from the query. There are some examples in pyperry and in the "ipy" libraries that you guys use. You can then include your processor on the base object that all of your classes inherit from to get it across the board.
Performing a query that retrieves records with only specific fields is a useful features. Occasionally, I need to be able to detect later in the same session if a record was retrieved in this way or if I can expect all fields to be defined. It would be great if there was an "is_partial" (name negotiable) method or attribute that would indicate if a record was retrieved with select fields.
The text was updated successfully, but these errors were encountered: