import mysql.connector
_connection = None

def get_connection():
    global _connection
    if not _connection:
        _connection = mysql.connector.connect(user='root', password='swaroop@18',
                                      host='127.0.0.1',
                                      database='mydb')
    return _connection

# List of stuff accessible to importers of this module. Just in case
__all__ = [ 'getConnection' ]

9ef1570bb33323a1790e1d968ed2c75d35de7f79
<mask token>

<mask token>


def get_connection():
    global _connection
    if not _connection:
        _connection = mysql.connector.connect(user='root', password=
            'swaroop@18', host='127.0.0.1', database='mydb')
    return _connection


<mask token>

<mask token>
_connection = None


def get_connection():
    global _connection
    if not _connection:
        _connection = mysql.connector.connect(user='root', password=
            'swaroop@18', host='127.0.0.1', database='mydb')
    return _connection


__all__ = ['getConnection']

import mysql.connector
_connection = None


def get_connection():
    global _connection
    if not _connection:
        _connection = mysql.connector.connect(user='root', password=
            'swaroop@18', host='127.0.0.1', database='mydb')
    return _connection


__all__ = ['getConnection']

import mysql.connector
_connection = None

def get_connection():
    global _connection
    if not _connection:
        _connection = mysql.connector.connect(user='root', password='swaroop@18',
                                      host='127.0.0.1',
                                      database='mydb')
    return _connection

# List of stuff accessible to importers of this module. Just in case
__all__ = [ 'getConnection' ]
