SQLAlchemy patterns — engine setup, session management, declarative models,
98
99%
Does it follow best practices?
Impact
98%
1.96xAverage score across 5 eval scenarios
Passed
No known issues
Build a data import service using SQLAlchemy that bulk-imports product records from CSV data into PostgreSQL.
Produce Python files in a src/ directory:
src/database.py -- engine configuration, session factory, Base class, and session dependencysrc/models.py -- Category and Product ORM modelssrc/importer.py -- an import_products(db, rows) function that takes a list of dicts, each with keys name, sku, price_cents, and category_name. For each row:
No test files, no migration files, no API framework code.