Skip to main content

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-mysql-db 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ojitos369-mysql-db 3.0.0
File Size Uploaded
ojitos369_mysql_db-3.0.0.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ojitos369-mysql-db 3.0.0
File Interpreter ABI Platform
ojitos369_mysql_db-3.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / ojitos369_mysql_db-3.0.0.tar.gz

Download URL ojitos369_mysql_db-3.0.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
592e2d215bba2fbd7ea6da79776220007213ab01f5c644394cf6acd9da30c3ef
BLAKE2b-256 checksum
How to use checksums
09419593beaa8cd6bb10a144aae56898211d70e3a34a4a797bcc6e514073bc39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / ojitos369_mysql_db-3.0.0-py3-none-any.whl

Download URL ojitos369_mysql_db-3.0.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2aaa0ab897c5bd2b2f88205f3a47c19f4bf2df88c42e4c7f3290a2ca92d75f71
BLAKE2b-256 checksum
How to use checksums
50824705ae55d09e41b15a55b4c089e2e2d24d1bc561f94420e3219a4461099b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files

2.1.3

1 release file

2.1.2

1 release file

2.1.1

1 release file

2.1

1 release file

2.0

1 release file

1.2

1 release file

1.1.1

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page