https://github.com/Dev2Forge/sqlazo
SQLAZO es un módulo el cual permite gestionar procedimientos básicos en una base de datos con sqlite3 en PYTHON
https://github.com/Dev2Forge/sqlazo
basesdedatos database modules opensource programming python python3 sql sqlite
Last synced: 2 months ago
JSON representation
SQLAZO es un módulo el cual permite gestionar procedimientos básicos en una base de datos con sqlite3 en PYTHON
- Host: GitHub
- URL: https://github.com/Dev2Forge/sqlazo
- Owner: tutosrivegamerLQ
- License: mit
- Created: 2025-01-07T00:02:27.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-02-12T18:30:17.000Z (11 months ago)
- Last Synced: 2025-02-12T19:34:18.276Z (11 months ago)
- Topics: basesdedatos, database, modules, opensource, programming, python, python3, sql, sqlite
- Language: Python
- Homepage: https://tutosrivegamerlq.github.io/sqlazo/
- Size: 235 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SQLAZO
---
---
```shell
pip install sqlazo
```
---
It is a module for managing *SQLITE* databases. It provides access to methods that perform **transactions** with the database of your choice, as long as it is a *SQLITE* database.
## Initialisation
To begin using it, create an instance of the **Database** class, which accepts the following parameters:
`name: str`: Name of the database (e.g. `'test.db'`).
`check_thread: boolean`: Check for multithreaded executions.
```py
# Initialisation example
from sqlazo import Database
# Will create a test.db file ready to use
# check threads is False by default
db = Database('test.db')
```
## Available Methods
* `create_table`: Allows you to create a table in the connected database.
* `table_exists`: Allows you to check if a table exists in the database.
* `insert_data`: Executes the insertion "query" in the database (adds data).
* `get_data_all`: Executes the "query" to retrieve all records from the database.
* `get_data_where`: Executes the "query" to retrieve records using a "custom query".
* `delete_data`: Deletes records from the database.
## Private Methods 🔏
* `__connect`: Establishes connection to the database.
* `__commit`: "Refreshes" changes to the database.
* `__cursor`: Creates a cursor on the database connection, allowing "query execution".
## Version History:
- `0.2.0`: A new method was added to correctly check whether a table exists or not, and the code was modified to try to be
compatible with older versions of Python and:
- `Fix`: [issue #1](https://github.com/Dev2Forge/sqlazo/issues/1)
- `Update`: Links and e-mail support
- `Feat`: Added new method [`table_exists`](#available-methods)
- `0.1.5`: Updated dependencies and links
- `0.1.4`: Updated dependencies and links
- `0.1.3`: Updated dependency versions
- `0.1.2`: Updated dependency versions
- `0.1.1`: Added dependency handling in the build file (.toml)
- `0.1.0`: Initial release
## If you wish to learn more, visit:
* [Support website](https://docs.dev2forge.software/sqlazo/)
* [PyPI page](https://pypi.org/project/sqlazo/)
* [GitHub project](https://github.com/dev2forge/sqlazo/)