';
GRANT SELECT, PROCESS ON *.* TO 'dbsafe'@'%';
```
---
## โ๏ธ Configuration
Location: `~/.dbsafe/config.yaml`
```yaml
connections:
default:
host: 127.0.0.1
port: 3306
user: dbsafe
database: myapp
defaults:
chunk_size: 10000
format: text # text | plain | json | markdown
```
```bash
dbsafe config init # create interactively
dbsafe config show # display current config
```
---
## ๐งช Testing
See [TESTING.md](TESTING.md) for the full guide. Quick reference:
```bash
go test ./... # unit tests (~2s)
./scripts/run-integration-tests.sh # integration tests with real MySQL
go test -bench=. -benchmem ./internal/... # benchmarks
```
Integration tests verified against MySQL 8.0 standalone and MySQL 8.4 LTS. See TESTING.md for Apple Silicon / ARM64 container notes.
---
## ๐ค Contributing
1. ๐ด Fork the repo
2. ๐ฟ Create a feature branch
3. โ
Add tests
4. ๐ Submit a PR
---
## ๐ License
Apache 2.0 โ see [LICENSE](LICENSE).
---
Made with โ and โค๏ธ for safer database operations
โญ Star on GitHub โข
๐ Report Bug โข
๐ก Request Feature