Troubleshooting
"Connection refused" PostgreSQL
# Check that PostgreSQL is running
sudo systemctl status postgresql
# Or on macOS:
brew services list
"Permission denied" on the Database
# Check permissions
psql -U postgres -d runique -c "\dp"
# Reapply permissions
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO runique_user;
SQLite Feature Not Enabled
Make sure the feature is enabled in Cargo.toml:
runique = { version = "1.1.53", features = ["orm", "postgres"] }
Compilation Error "sea_orm"
# Clean and rebuild
cargo clean
cargo build
Pre-commit Hooks (optional)
# Install pre-commit
pip install pre-commit
# Setup hooks
pre-commit install
# Test hooks
pre-commit run --all-files