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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbe_engine-0.1.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dbe_engine-0.1.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file dbe_engine-0.1.0.tar.gz.

File metadata

  • Download URL: dbe_engine-0.1.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.11

File hashes

Hashes for dbe_engine-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8c2cd88ab82ad824a27ec85313feb0145494ab17c4bd8ee08a35c076033a52a2
MD5 8c29b3125f9b088dcc8ca5db373710db
BLAKE2b-256 6e77271060f105b3271c6c1438f2970aa19f5b795e56302fefce817da475b713

See more details on using hashes here.

File details

Details for the file dbe_engine-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dbe_engine-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.11

File hashes

Hashes for dbe_engine-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 56d5f4fbdd80bec2d5f26ed6ae8d4ef6fce791d861e1ddd76d32234e74e4cdd1
MD5 07e8c4964bd6ebaeb4fde0816c37707a
BLAKE2b-256 8ccfc024c1bf8e1e10109771222286fa7de494a2bdc85055764e0d792d7ae2e7

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.1

2 files

This release

0.1.0 This release

2 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