Feature | SQLite | MySQL | PostgreSQL | SQL Server | Oracle |
---|---|---|---|---|---|
Cost | Free | Free/Paid | Free | Paid/Free Dev | Paid |
Scalability | Limited | High | Very High | Very High | Very High |
Concurrent Users | Single | Multiple | Multiple | Multiple | Multiple |
Setup Complexity | Minimal | Moderate | Moderate | Complex | Complex |
Best For | Embedded/Mobile | Web Apps | Complex Data | Enterprise | Enterprise |
from sqlalchemy import create_engine
engine = create_engine('sqlite:///database.db')