Skip to main content

dbe-engine

Lightweight, dependency-free database engine with Estonian-language SQL-like keywords, backed by a simple JSON file format (.dbe).

LOO TABEL kasutajad (id TÄISARV PÕHIVÕTI, nimi TEKST);
LISA TABELISSE kasutajad (id, nimi) VÄÄRTUSED (1, 'Mari');
VALI KÕIK TABELIST kasutajad KUS id = 1;

Install

pip install dbe-engine

Usage

from dbe_engine.engine import Database
from dbe_engine import storage

path = "minu.dbe"
storage.save(path, storage.empty_database())

db = Database(path)
results = db.execute_script(
    "LOO TABEL kasutajad (id TÄISARV PÕHIVÕTI, nimi TEKST);"
    "LISA TABELISSE kasutajad (id, nimi) VÄÄRTUSED (1, 'Mari');"
    "VALI KÕIK TABELIST kasutajad;"
)
for r in results:
    print(r)

Supported commands

Eesti keeles SQL vaste
LOO TABEL nimi (veerg TÜÜP [PÕHIVÕTI] [KOHUSTUSLIK], ...) CREATE TABLE
KUSTUTA TABEL nimi DROP TABLE
NÄITA TABELEID SHOW TABLES
KIRJELDA nimi DESCRIBE
LISA TABELISSE nimi (...) VÄÄRTUSED (...) INSERT INTO
VALI veerud TABELIST nimi [KUS ...] [JÄRJESTA ...] [PIIRA ...] SELECT
UUENDA nimi MÄÄRA veerg = väärtus [KUS ...] UPDATE
KUSTUTA TABELIST nimi [KUS ...] DELETE FROM

Types: TÄISARV (int), MURDARV (float), TEKST (text), TÕEVÄÄRTUS (bool).

License

MIT

Metadata

Release files for dbe-engine 0.1.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 dbe-engine 0.1.0
File Size Uploaded
dbe_engine-0.1.0.tar.gz 10.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dbe-engine 0.1.0
File Interpreter ABI Platform
dbe_engine-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 22.3 kB

Release files / dbe_engine-0.1.0.tar.gz

Download URL dbe_engine-0.1.0.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8c2cd88ab82ad824a27ec85313feb0145494ab17c4bd8ee08a35c076033a52a2
BLAKE2b-256 checksum
How to use checksums
6e77271060f105b3271c6c1438f2970aa19f5b795e56302fefce817da475b713
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Release files / dbe_engine-0.1.0-py3-none-any.whl

Download URL dbe_engine-0.1.0-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
56d5f4fbdd80bec2d5f26ed6ae8d4ef6fce791d861e1ddd76d32234e74e4cdd1
BLAKE2b-256 checksum
How to use checksums
8ccfc024c1bf8e1e10109771222286fa7de494a2bdc85055764e0d792d7ae2e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release files

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