📄️ Examples Overview
This section provides practical examples demonstrating various features and use cases of dqlitepy. Each example is a complete, runnable project with its own dependencies and setup instructions.
📄️ Simple Node Example
A minimal example demonstrating how to create and use a single dqlite node with basic CRUD operations.
📄️ Multi-Node Cluster Example
Learn how to create and manage a 3-node dqlite cluster with automatic failover and data replication.
📄️ Cluster with Client Example
Learn how to manage a dqlite cluster remotely using the client API, enabling external applications to interact with the cluster without embedding nodes.
📄️ SQLAlchemy ORM Example
Learn how to use SQLAlchemy's powerful ORM with dqlitepy for distributed database operations with a Pythonic interface.
📄️ FastAPI Integration Example
Learn how to build a production-ready REST API using FastAPI with dqlitepy and SQLAlchemy, including cluster management, Docker support, and comprehensive CLI tools.