Skip to content

Commit

Permalink
#87: Add Query Docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranjprice101 committed Oct 30, 2019
1 parent 0b45c2a commit c4b46fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/database_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@


class Query(ABC):
"""
The base query class that all other queries extend from. This defines the enter and exit methods, used to handle
sessions. It is expected that all queries would be used with the 'with' keyword in most cases for this reason.
"""
@abstractmethod
def __init__(self, table):
self.session = session_manager.get_icat_db_session()
Expand Down

0 comments on commit c4b46fb

Please sign in to comment.