Python MySQLdb.version_info() Examples

The following are code examples for showing how to use MySQLdb.version_info(). They are from open source Python projects. You can vote up the examples you like or vote down the ones you don't like.

Example 1
Project: gprime   Author: GenealogyCollective   File:    GNU General Public License v2.0 5 votes vote down vote up
def get_summary(cls):
        Return a diction of information about this database
        summary = {
            "DB-API version": "2.0",
            "Database SQL type": cls.__name__,
            "Database SQL module": "MySQLdb",
            "Database SQL module version": ".".join([str(v) for v in MySQLdb.version_info]),
            "Database SQL module location": MySQLdb.__file__,
        return summary