import pymysql
import pymysql.cursors
class Conexion():
    def __init__(self, server="localhost", user="root", passwrd="sasa", db="colegio"):
        self.db = pymysql.connect(server, user, passwrd, db)
        self.cursors = self.db.cursor()
        #print("Conexion establecida")

    def ejecutar_sentencia(self, sql):
        self.cursors.execute(sql)
        return self.cursors
    
    def cerrar_conexion(self):
        self.db.close()
        #print("Desconectado")
    
    def commit(self):
        self.db.commit()
        return
    
    def rollback(self):
        self.db.rollback()
        return
4b0e9fb9b94e31c89e82fdf5e3e2e44b3ca19356
<mask token>


class Conexion:

    def __init__(self, server='localhost', user='root', passwrd='sasa', db=
        'colegio'):
        self.db = pymysql.connect(server, user, passwrd, db)
        self.cursors = self.db.cursor()
    <mask token>
    <mask token>
    <mask token>

    def rollback(self):
        self.db.rollback()
        return

<mask token>


class Conexion:

    def __init__(self, server='localhost', user='root', passwrd='sasa', db=
        'colegio'):
        self.db = pymysql.connect(server, user, passwrd, db)
        self.cursors = self.db.cursor()
    <mask token>
    <mask token>

    def commit(self):
        self.db.commit()
        return

    def rollback(self):
        self.db.rollback()
        return

<mask token>


class Conexion:

    def __init__(self, server='localhost', user='root', passwrd='sasa', db=
        'colegio'):
        self.db = pymysql.connect(server, user, passwrd, db)
        self.cursors = self.db.cursor()
    <mask token>

    def cerrar_conexion(self):
        self.db.close()

    def commit(self):
        self.db.commit()
        return

    def rollback(self):
        self.db.rollback()
        return

<mask token>


class Conexion:

    def __init__(self, server='localhost', user='root', passwrd='sasa', db=
        'colegio'):
        self.db = pymysql.connect(server, user, passwrd, db)
        self.cursors = self.db.cursor()

    def ejecutar_sentencia(self, sql):
        self.cursors.execute(sql)
        return self.cursors

    def cerrar_conexion(self):
        self.db.close()

    def commit(self):
        self.db.commit()
        return

    def rollback(self):
        self.db.rollback()
        return

import pymysql
import pymysql.cursors
class Conexion():
    def __init__(self, server="localhost", user="root", passwrd="sasa", db="colegio"):
        self.db = pymysql.connect(server, user, passwrd, db)
        self.cursors = self.db.cursor()
        #print("Conexion establecida")

    def ejecutar_sentencia(self, sql):
        self.cursors.execute(sql)
        return self.cursors
    
    def cerrar_conexion(self):
        self.db.close()
        #print("Desconectado")
    
    def commit(self):
        self.db.commit()
        return
    
    def rollback(self):
        self.db.rollback()
        return