ojitos369 (General)
REPO: https://github.com/Ojitos369/ojitos369-pip
Databases
MySQL
from ojitos369_mysql_db.mysql_db import ConexionMySQL
db_data = {
'user': 'your_db_user',
'password': 'your_db_password',
'host': 'your_db_host',
'scheme': 'your_scheme_name',
}
conexion = ConexionMySQL(db_data)
conexion.consulta(query, params=None) # return a list of list with the result of the query
# >> [["ojitos369", 18], ["ojitos369", 18]]
conexion.consulta_asociativa(query, params=None) # return a list of dict with the result of the query
# >> [{"name": "ojitos369", "age": 18}, {"name": "ojitos369", "age": 18}]
conexion.ejecutar(query, parametros = None) # execute transaction prepared with preparar_transaccion
# >> Bool
conexion.paginador(query, registros_pagina = 1, pagina = 2, params = None) # return de n resutls of query
# >> {
# >> 'registros': [{"name": "ojitos369", "age": 18, "rnum": 2}],
# >> 'num_registros': 2,
# >> 'paginas': 2,
# >> 'pagina': 2,
# >> }
conexion.commit() # commit transaction
conexion.rollback() # rollback transaction
conexion.close() # close connection
```# ojitos369_mysql_db
# ojitos369_mysql_db
Release files for ojitos369-postgres-db 2.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ojitos369_postgres_db-2.1.4.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ojitos369_postgres_db-2.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.9 kB
Release files / ojitos369_postgres_db-2.1.4.tar.gz
| Download URL | ojitos369_postgres_db-2.1.4.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a937be427a0ffb1f8ce8b08407c8e33f71ee4b53dc63034d732b3f70842cc4c
|
|
BLAKE2b-256 checksum How to use checksums |
bba4d6374a3475ff92136878981fa0f69bebec7fc2945453e9e9d8c03d4f29a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / ojitos369_postgres_db-2.1.4-py3-none-any.whl
| Download URL | ojitos369_postgres_db-2.1.4-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d439c2eb108b2ca367f3664333820d63440731bec980b75458522bcc4167e76
|
|
BLAKE2b-256 checksum How to use checksums |
5bdcd65b855be8fbecd13c731d0e1b5c6b68e5b0e530dd2df384547dd14e37a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|