Embedded ECS-based database engine for enterprise game engines.
Project description
VeldrabDB
Una librería simple para manejar bases de datos SQLite en Python.
Instalación
pip install veldrab
Uso
from veldrab import VeldrabDB
# Crear instancia de la base de datos
db = VeldrabDB("mi_base.db")
# Crear tabla
db.create_table("usuarios", {"id": "INTEGER PRIMARY KEY", "nombre": "TEXT", "edad": "INTEGER"})
# Insertar datos
db.insert("usuarios", {"nombre": "Juan", "edad": 25})
# Seleccionar datos
resultados = db.select("usuarios")
print(resultados)
# Actualizar datos
db.update("usuarios", {"edad": 26}, "nombre = 'Juan'")
# Eliminar datos
db.delete("usuarios", "nombre = 'Juan'")
# Cerrar conexión
db.close()
Funciones disponibles
VeldrabDB(db_name): Inicializa la conexión a la base de datos.create_table(table_name, columns): Crea una tabla.insert(table_name, data): Inserta datos.select(table_name, columns, where): Selecciona datos.update(table_name, data, where): Actualiza datos.delete(table_name, where): Elimina datos.close(): Cierra la conexión.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
veldradb-0.1.1.tar.gz
(2.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file veldradb-0.1.1.tar.gz.
File metadata
- Download URL: veldradb-0.1.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f697a2c06f2f2638147179221bff2bda9b649ace0f4dbe451f6fbe0b2d938a1
|
|
| MD5 |
a4cf2d48baeb4c1bcfe869680ddd046e
|
|
| BLAKE2b-256 |
ce84574569dcd59ba8d254bb919c75751c4904c08ef581d23c65942ecc66d30c
|
File details
Details for the file veldradb-0.1.1-py3-none-any.whl.
File metadata
- Download URL: veldradb-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdd98becb655ea752d36cbeaaaa5323b7f18473616ddae3bd0050207c1626094
|
|
| MD5 |
c6165412e8b1be7e80afd8a5ed8759ec
|
|
| BLAKE2b-256 |
c0fe435eb6e6ffca9a0059e071f24a5f4c9adc9bf2004b3f027f1b71eb63c0c0
|