mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
7e25b4fad9
SQLite gives e2e tests a single shared file across all containers without needing a heavyweight MariaDB/MongoDB/PostgreSQL service. WAL + busy_timeout keep multi-process writers tolerable. Memory adapter was considered but its per-process PHP arrays don't survive Swoole worker fan-out or cross-container queue handoffs, so file-backed SQLite is the practical choice. - registers: add 'sqlite' scheme to pool factory and worker db register, configured with PRAGMA journal_mode=WAL, busy_timeout=5000, foreign_keys=ON - compose: pass _APP_DB_SQLITE_PATH and mount appwrite-sqlite:/storage/sqlite on every service that touches the main DB - .env: switch _APP_DB_ADAPTER to sqlite, drop mariadb from COMPOSE_PROFILES - ci.yml: add SQLite to the e2e matrix alongside MongoDB so each service is timed against both adapters in the same workflow run Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>