SchemaShard provides dynamic, LRU-managed database shard and read-replica connection pooling for Rails 8+ applications with optional, fail-closed multi-tenant isolation (PostgreSQL schemas via ros-apartment or native search_path, MySQL/Trilogy databases, SQLite3 per-tenant files, or pure shard-only routing). Includes dual-layer read-only enforcement, connection hygiene, fork safety, and Prometheus/StatsD observability.
Required Ruby Version
>= 3.2.0
Authors
Raynald Serenas (syrens)