import mysql.connector as mariadb


class MyDB(object):

    def __init__(self):
        self._db_connection = mariadb.connect(host='192.168.1.20', port=
            3307, user='application', password='8*vcjn.nwACH+m6f', database
            ='dataset')
        self._db_cur = self._db_connection.cursor()

    def query(self, query):
        return self._db_cur.execute(query)

    def fetchone(self):
        return self._db_cur.fetchone()

    def fetchall(self):
        return self._db_cur.fetchall()

    def __del__(self):
        self._db_connection.commit()
        self._db_connection.close()


if __name__ == '__main__':
    tt = MyDB()
    tt.query('SELECT count(name) from PICTURE ;')
    print(tt.fetchone())

8d651b80432de1b943b263428b252f4ee029da83
<mask token>


class MyDB(object):

    def __init__(self):
        self._db_connection = mariadb.connect(host='192.168.1.20', port=
            3307, user='application', password='8*vcjn.nwACH+m6f', database
            ='dataset')
        self._db_cur = self._db_connection.cursor()
    <mask token>
    <mask token>
    <mask token>
    <mask token>


<mask token>

<mask token>


class MyDB(object):

    def __init__(self):
        self._db_connection = mariadb.connect(host='192.168.1.20', port=
            3307, user='application', password='8*vcjn.nwACH+m6f', database
            ='dataset')
        self._db_cur = self._db_connection.cursor()

    def query(self, query):
        return self._db_cur.execute(query)

    def fetchone(self):
        return self._db_cur.fetchone()

    def fetchall(self):
        return self._db_cur.fetchall()

    def __del__(self):
        self._db_connection.commit()
        self._db_connection.close()


<mask token>

<mask token>


class MyDB(object):

    def __init__(self):
        self._db_connection = mariadb.connect(host='192.168.1.20', port=
            3307, user='application', password='8*vcjn.nwACH+m6f', database
            ='dataset')
        self._db_cur = self._db_connection.cursor()

    def query(self, query):
        return self._db_cur.execute(query)

    def fetchone(self):
        return self._db_cur.fetchone()

    def fetchall(self):
        return self._db_cur.fetchall()

    def __del__(self):
        self._db_connection.commit()
        self._db_connection.close()


if __name__ == '__main__':
    tt = MyDB()
    tt.query('SELECT count(name) from PICTURE ;')
    print(tt.fetchone())

import mysql.connector as mariadb


class MyDB(object):

    def __init__(self):
        self._db_connection = mariadb.connect(host='192.168.1.20', port=
            3307, user='application', password='8*vcjn.nwACH+m6f', database
            ='dataset')
        self._db_cur = self._db_connection.cursor()

    def query(self, query):
        return self._db_cur.execute(query)

    def fetchone(self):
        return self._db_cur.fetchone()

    def fetchall(self):
        return self._db_cur.fetchall()

    def __del__(self):
        self._db_connection.commit()
        self._db_connection.close()


if __name__ == '__main__':
    tt = MyDB()
    tt.query('SELECT count(name) from PICTURE ;')
    print(tt.fetchone())
