This is a sample application demonstrating the use of SQLAlchemy ORM in Python. The application sets up a SQLite database, adds sample data, and queries the database.
- Connect to sqlite databases using SQLAlchemy
- Perform CRUD operations
- Use ORM to map database tables to Python classes
- Clone the repository:
> git clone https://github.com/darrenleeyx/sqlalchemy-test.git > cd sqlalchemy-test
- Create and activate a virtual environment
> python -m venv venv > venv/bin/activate
- Install the required packages:
> pip install -r requirements.txt
- Configure your database settings in
config.py. - Run the application:
> python main.py