This project is a simplified demonstration of using SQLAlchemy in Python to manage a book database. It includes basic operations such as adding and retrieving books.
- Python 3
- SQLAlchemy
- Install the required packages:
pip install -r requirements.txt - Run the application:
python app.py
The schema.sql file contains the SQL commands to create the books table and insert sample data.
app.py demonstrates how to use SQLAlchemy for basic database operations. It includes a simple Book model and functions for adding and retrieving books from the database.