This project simulates a distributed system using SQLite databases. It includes three models (Users
, Products
, and Orders
) stored in separate databases, with data inserted concurrently using Python's threading module.
- Separate SQLite databases for
Users
,Products
, andOrders
. - Concurrent data insertion using threads.
- Application-level data validation.
main.py
: The Python script containing the implementation.- Generated Databases: Automatically created after running the script:
users.db
products.db
orders.db
- Python 3.x
- SQLite3
- DB Browser for SQLite for verification.
- Clone or download the project files.
- Navigate to the project directory.
- Execute the script:
python main.py
- The script will create the databases and insert data concurrently.
- Open the database files (
users.db
,products.db
,orders.db
) in a tool like DB Browser for SQLite. - Run queries to check the data:
SELECT * FROM Users; SELECT * FROM Products; SELECT * FROM Orders;
- Ensure a valid Python environment is set up before running the script.
- This project demonstrates basic concurrency and SQLite usage in Python.