bbdd-utils 0.3.7__tar.gz → 0.3.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bbdd_utils-0.3.7 → bbdd_utils-0.3.9}/PKG-INFO +1 -1
- {bbdd_utils-0.3.7 → bbdd_utils-0.3.9}/bbdd_utils/utils.py +2 -2
- {bbdd_utils-0.3.7 → bbdd_utils-0.3.9}/bbdd_utils.egg-info/PKG-INFO +1 -1
- {bbdd_utils-0.3.7 → bbdd_utils-0.3.9}/setup.py +1 -1
- {bbdd_utils-0.3.7 → bbdd_utils-0.3.9}/LICENSE +0 -0
- {bbdd_utils-0.3.7 → bbdd_utils-0.3.9}/README.md +0 -0
- {bbdd_utils-0.3.7 → bbdd_utils-0.3.9}/bbdd_utils/__init__.py +0 -0
- {bbdd_utils-0.3.7 → bbdd_utils-0.3.9}/bbdd_utils.egg-info/SOURCES.txt +0 -0
- {bbdd_utils-0.3.7 → bbdd_utils-0.3.9}/bbdd_utils.egg-info/dependency_links.txt +0 -0
- {bbdd_utils-0.3.7 → bbdd_utils-0.3.9}/bbdd_utils.egg-info/top_level.txt +0 -0
- {bbdd_utils-0.3.7 → bbdd_utils-0.3.9}/pyproject.toml +0 -0
- {bbdd_utils-0.3.7 → bbdd_utils-0.3.9}/setup.cfg +0 -0
@@ -77,7 +77,7 @@ def Cerrar_conexion(conn):
|
|
77
77
|
def Insert(conn, data):
|
78
78
|
# Verifica el tipo de base de datos con la que estamos trabajando
|
79
79
|
import sqlite3
|
80
|
-
|
80
|
+
import mysql.connector
|
81
81
|
from pymongo.database import Database
|
82
82
|
############# SQLite ################
|
83
83
|
if isinstance(conn, sqlite3.Connection):
|
@@ -96,7 +96,7 @@ def Insert(conn, data):
|
|
96
96
|
print(f"ID: {fila[0]}, Nombre: {fila[1]}, Edad: {fila[2]}")
|
97
97
|
|
98
98
|
############# MySQL ################
|
99
|
-
elif isinstance(conn, mysql.connector.
|
99
|
+
elif isinstance(conn, mysql.connector.connection_cext.CMySQLConnection):
|
100
100
|
print("Conexión exitosa a la base de datos MySQL.")
|
101
101
|
# Si estamos usando MySQL, podemos trabajar con la conexión de esta manera
|
102
102
|
cursor = conn.cursor()
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|