"""
 实现封装：
    连接数据中台测试库
"""
import pymysql

class dbc_Utils:

    # 工具函数：1.获取数据中台测试库连接
    @classmethod
    def get_connect(cls):
        return pymysql.connect(
            host="14.23.109.84",
            port=3306,
            database="ms_datacenter",
            user="root",
            password="Ms77897854",
            charset="utf8"
        )

    # 工具函数：2.获取游标
    @classmethod
    def get_cursor(cls,connect):
        return connect.cursor()

    # 工具函数：3.释放资源
    @classmethod
    def close_resource(cls,cursor,connect):
        if cursor:
            cursor.close()
        if connect:
            connect.close()
a7632e1732e36b5cf3d55c670ce5d6d273d5076a
<mask token>


class dbc_Utils:
    <mask token>

    @classmethod
    def get_cursor(cls, connect):
        return connect.cursor()
    <mask token>

<mask token>


class dbc_Utils:

    @classmethod
    def get_connect(cls):
        return pymysql.connect(host='14.23.109.84', port=3306, database=
            'ms_datacenter', user='root', password='Ms77897854', charset='utf8'
            )

    @classmethod
    def get_cursor(cls, connect):
        return connect.cursor()
    <mask token>

<mask token>


class dbc_Utils:

    @classmethod
    def get_connect(cls):
        return pymysql.connect(host='14.23.109.84', port=3306, database=
            'ms_datacenter', user='root', password='Ms77897854', charset='utf8'
            )

    @classmethod
    def get_cursor(cls, connect):
        return connect.cursor()

    @classmethod
    def close_resource(cls, cursor, connect):
        if cursor:
            cursor.close()
        if connect:
            connect.close()

<mask token>
import pymysql


class dbc_Utils:

    @classmethod
    def get_connect(cls):
        return pymysql.connect(host='14.23.109.84', port=3306, database=
            'ms_datacenter', user='root', password='Ms77897854', charset='utf8'
            )

    @classmethod
    def get_cursor(cls, connect):
        return connect.cursor()

    @classmethod
    def close_resource(cls, cursor, connect):
        if cursor:
            cursor.close()
        if connect:
            connect.close()

"""
 实现封装：
    连接数据中台测试库
"""
import pymysql

class dbc_Utils:

    # 工具函数：1.获取数据中台测试库连接
    @classmethod
    def get_connect(cls):
        return pymysql.connect(
            host="14.23.109.84",
            port=3306,
            database="ms_datacenter",
            user="root",
            password="Ms77897854",
            charset="utf8"
        )

    # 工具函数：2.获取游标
    @classmethod
    def get_cursor(cls,connect):
        return connect.cursor()

    # 工具函数：3.释放资源
    @classmethod
    def close_resource(cls,cursor,connect):
        if cursor:
            cursor.close()
        if connect:
            connect.close()