bbdd-utils 0.3.6__py3-none-any.whl → 0.3.8__py3-none-any.whl

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/utils.py CHANGED
@@ -76,8 +76,11 @@ def Cerrar_conexion(conn):
76
76
 
77
77
  def Insert(conn, data):
78
78
  # Verifica el tipo de base de datos con la que estamos trabajando
79
- ############# SQLite ################
80
79
  import sqlite3
80
+ from mysql.connector.connection import MySQLConnection
81
+ import mysql.connector
82
+ from pymongo.database import Database
83
+ ############# SQLite ################
81
84
  if isinstance(conn, sqlite3.Connection):
82
85
  print("Conexión exitosa a la base de datos SQL.")
83
86
  # Si estamos usando SQLite, podemos trabajar con la conexión de esta manera
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bbdd_utils
3
- Version: 0.3.6
3
+ Version: 0.3.8
4
4
  Summary: insertar datos en una base de datos SQL o NoSQL
5
5
  Author: Luis_J_Domingo
6
6
  Description-Content-Type: text/markdown
@@ -0,0 +1,7 @@
1
+ bbdd_utils/__init__.py,sha256=mjRX7GqWkOJq66KqghZ4MZE0Aai6R89LPeu1mjq4lD4,121
2
+ bbdd_utils/utils.py,sha256=WcvRBP43FEVRkOdnbDEBmyTaHH97TPxKhaTBFKe_Rxo,4778
3
+ bbdd_utils-0.3.8.dist-info/licenses/LICENSE,sha256=D4uqg6QX0fapLNcdUznOuGaRIUPnypOdeE2zIyYq7xY,217
4
+ bbdd_utils-0.3.8.dist-info/METADATA,sha256=LCM3PdJYCU3s0kWIbuxOnLNE8asoLtfVCt1YTKFFGCs,693
5
+ bbdd_utils-0.3.8.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
6
+ bbdd_utils-0.3.8.dist-info/top_level.txt,sha256=bBGkVkxnOw7tZ2zRcyCM3lgVgYo1hFbcmwkGdKAj9Gk,11
7
+ bbdd_utils-0.3.8.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- bbdd_utils/__init__.py,sha256=mjRX7GqWkOJq66KqghZ4MZE0Aai6R89LPeu1mjq4lD4,121
2
- bbdd_utils/utils.py,sha256=5co6YUlI7tzx-pIqnVcCAU-H2kflv59NFetRs4aTCvk,4646
3
- bbdd_utils-0.3.6.dist-info/licenses/LICENSE,sha256=D4uqg6QX0fapLNcdUznOuGaRIUPnypOdeE2zIyYq7xY,217
4
- bbdd_utils-0.3.6.dist-info/METADATA,sha256=jPMMQDXf_iVe83GrdPIsOOPHSTtvU9wCfcQCidfdOWM,693
5
- bbdd_utils-0.3.6.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
6
- bbdd_utils-0.3.6.dist-info/top_level.txt,sha256=bBGkVkxnOw7tZ2zRcyCM3lgVgYo1hFbcmwkGdKAj9Gk,11
7
- bbdd_utils-0.3.6.dist-info/RECORD,,