Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blakewilliams/guesswho
a simple MySQL proxy to log queries for applications
https://github.com/blakewilliams/guesswho
Last synced: 16 days ago
JSON representation
a simple MySQL proxy to log queries for applications
- Host: GitHub
- URL: https://github.com/blakewilliams/guesswho
- Owner: BlakeWilliams
- Created: 2024-10-29T23:41:52.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-11T01:40:07.000Z (about 2 months ago)
- Last Synced: 2024-12-15T14:57:11.239Z (19 days ago)
- Language: Go
- Size: 51.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GuessWho
GuessWho is a simple MySQL proxy written in Go that listens for, and logs queries on a per-table basis.
WARNING: SSL does not currently work with this proxy. The proxy explicitly modifies the server capabilities packet to remove SSL support. PR's adding SSL support is welcome.
## Commands
Interacting with GuessWho is done through SQL commands. For example, to dump the collected query info you can run the following query:
```sql
gw dump
```This creates a YAML file per-table with all the collected queries. e.g. `users.yaml`:
```yaml
# This file was generated by DO NOT MODIFY
version: 1
queries:
b2a82b217edadea3876aaca3527dd375:
digest: select * from users where id in (?) limit ?
```## TODO
- Detect `CLIENT_QUERY_ATTRIBUTES` and panic as it's not supported.