Skip to main content

⚡ SoketDB v2.0 — The Production-Ready Database That Runs Anywhere

No setup. No servers. No compromises. SoketDB v2.0 transforms from a simple JSON database into a full-featured, ACID-compliant database engine with PostgreSQL-like capabilities — while maintaining zero setup and offline-first philosophy.


🎊 MAJOR UPGRADE: SoketDB v2.0

This is NOT just an update — it's a complete reimagining of what SoketDB can be.

The original SoketDB was a smart JSON database. SoketDB v2.0 is now a production-ready database engine with all the features you'd expect from PostgreSQL, but with zero setup and AI-powered queries.

✨ What's New in v2.0:

🏛️ PostgreSQL-Like Architecture

  • Write-Ahead Logging (WAL) — Guaranteed durability and crash recovery
  • Multi-Version Concurrency Control (MVCC) — Full transaction isolation levels
  • Connection Pooling — Proper database connections with Connection and Cursor objects
  • ACID Compliance — Atomicity, Consistency, Isolation, Durability

📊 Advanced Query Features

  • Full JOIN Support — Inner, Left, Right, and Cross joins
  • Subqueries & CTEs — Common Table Expressions for complex queries
  • Window Functions — ROW_NUMBER(), RANK(), LEAD(), LAG()
  • Aggregate Functions — COUNT, SUM, AVG, MIN, MAX with GROUP BY
  • Full-Text Search — Built-in search capabilities

🔧 Database Objects

  • Indexes — B-tree, Hash, and GIN (Generalized Inverted Index) for JSON
  • Constraints — PRIMARY KEY, FOREIGN KEY, UNIQUE, NOT NULL, CHECK, DEFAULT
  • Sequences — Auto-incrementing columns
  • Views — Virtual tables based on queries
  • Stored Procedures — Custom functions (coming soon)

🔐 Enterprise Security

  • Production Encryption — AES-256 encryption for data at rest
  • Automatic Key Management — Secure key generation and storage
  • Encrypted Backups — All cloud backups are encrypted
  • Environment Variable Support — Secure credential management

☁️ Intelligent Cloud Integration

  • Automatic Backup Restoration — Always queries from backup for latest data
  • Hard Read/Write — Guaranteed persistence with multiple backup layers
  • Smart Caching — Always fetches latest data without explicit restore()
  • Multi-Provider Support — HuggingFace, Google Drive, AWS S3, Dropbox

🧠 Enhanced AI Engine

  • Natural Language to SQL — Even smarter query translation
  • Query Optimization — Automatic execution plan generation
  • Query Caching — 5-minute cache for frequently run queries
  • Performance Stats — Detailed database performance metrics

📋 New Database Objects & Methods

# Connections & Cursors (like PostgreSQL)
conn = db.get_connection()
cursor = conn.cursor()
cursor.execute("SELECT * FROM users")
row = cursor.fetchone()  # ✅ YES, fetchone() works!
rows = cursor.fetchall()
batch = cursor.fetchmany(10)

# Transactions with isolation levels
conn.begin(isolation_level=IsolationLevel.SERIALIZABLE)
try:
    conn.execute("UPDATE accounts SET balance = balance - 100 WHERE id = 1")
    conn.execute("UPDATE accounts SET balance = balance + 100 WHERE id = 2")
    conn.commit()
except:
    conn.rollback()

# Indexes
db.create_index("users", "email", IndexType.BTREE)
db.create_index("users", "metadata", IndexType.GIN)  # For JSON fields

# Constraints
db.add_constraint("users", "pk_users", ConstraintType.PRIMARY_KEY, ["id"])
db.add_constraint("users", "unique_email", ConstraintType.UNIQUE, ["email"])
db.add_constraint("users", "age_check", ConstraintType.CHECK, ["age"], check_expr="age >= 0 AND age <= 150")

# Advanced queries
result = db.execute("""
    WITH user_orders AS (
        SELECT u.name, COUNT(o.id) as order_count
        FROM users u
        LEFT JOIN orders o ON u.id = o.user_id
        GROUP BY u.id, u.name
    )
    SELECT name, order_count,
           RANK() OVER (ORDER BY order_count DESC) as rank
    FROM user_orders
""")

Metadata

Release files for soketdb 2.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 soketdb 2.0.0
File Size Uploaded Provenance Actions
soketdb-2.0.0.tar.gz 70.0 kB Without provenance Details for soketdb-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for soketdb 2.0.0
File Interpreter ABI Platform Actions
soketdb-2.0.0-py3-none-any.whl Python 3 none any Details for soketdb-2.0.0-py3-none-any.whl

Total release size: 138.1 kB

Release files / soketdb-2.0.0.tar.gz

Download URL soketdb-2.0.0.tar.gz
Size 70.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1a352e0271c868dde338f78964aaa8607d8b38a392d958a662ddfdfe3d6adcce
BLAKE2b-256 checksum
How to use checksums
dc55427f364904a941c3316a0b621bc6a0dc49104695e205b8f95dac8417da5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / soketdb-2.0.0-py3-none-any.whl

Download URL soketdb-2.0.0-py3-none-any.whl
Size 68.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
619a8946e7fadace6670327b25c75b52469e7be53024d50921f4382e8f4dc251
BLAKE2b-256 checksum
How to use checksums
08370d2d962ac4877a02ab549d77b58ce7f9f51e2a285ddde7e650452be49e39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for soketdb 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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