(self, session, extra_info: Optional[Dict[str,str]]=None)
return d
Get database information.

        :param session:
        :return:        A dict of information entries.
Get database information.
Get database information .
def get_dbinfo(self, session, extra_info: Optional[Dict[str,str]]=None):
        """
        Get database information.

        :param session:
        :return:        A dict of information entries.
        """

        d = { }

        # version
        version = self.get_info(session, "version")
        if version is not None:
            version = int(version)
        d['version'] = version

        # saved_at
        saved_at = self.get_info(session, "saved_at")
        if saved_at is not None:
            saved_at = int(saved_at)
        d['saved_at'] = saved_at

        if extra_info is not None:
            # store *everything* into the dict
            for entry in session.query(DbInformation):
                extra_info[entry.key] = entry.value

        return d
def get_dbinfo ( self , session , extra_info : Optional [ Dict [ str , str ] ] = None ) : d = { } # version version = self . get_info ( session , "version" ) if version is not None : version = int ( version ) d [ 'version' ] = version # saved_at saved_at = self . get_info ( session , "saved_at" ) if saved_at is not None : saved_at = int ( saved_at ) d [ 'saved_at' ] = saved_at if extra_info is not None : # store *everything* into the dict for entry in session . query ( DbInformation ) : extra_info [ entry . key ] = entry . value return d