feat: add pg-query example + upload.go supports requirements.txt

- examples/pg-query/handler.py: Python function querying PostgreSQL invocations table
- examples/pg-query/requirements.txt: psycopg2-binary==2.9.9
- examples/pg-query/main.tf: terraform config for sless_function + sless_trigger
- internal/api/handler/upload.go: generateDockerfile() now accepts hasRequirements bool
  - scans zip for requirements.txt at upload time
  - adds RUN pip install --no-cache-dir to Dockerfile when requirements.txt present
- doc/progress.md: updated status for pg-query e2e task
This commit is contained in:
“Naeel”
2026-03-07 10:30:50 +04:00
parent dc7542148e
commit 4e59d79884
5 changed files with 124 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
psycopg2-binary==2.9.9