mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-05-12 23:23:20 +08:00
b20e121013
Add support for creating in-memory SQLite database instances to improve test isolation and performance. Changes: - Add Database::memory() constructor for in-memory database - Enable foreign key constraints for data integrity - Export Database type from lib.rs for test usage - Initialize tables automatically on memory database creation This enables unit tests to run without filesystem dependencies and provides faster test execution with proper cleanup.