C++ TCP proxy server for DBMS with the ability to log all SQL queries passing through it.
PostgreSQL was used as a DBMS.
The proxy can handle a large number of simultaneous connections. Only SQL queries are logged. Errors in the protocol are handled in the code.
git clone git@github.com:Hasuk1/Proxy-Server-with-logging-SQL-queries.git
cd Proxy-Server-with-logging-SQL-queries/src
make proxy_start
./proxy
4568 127.0.0.1 5432
make connect_to_db
psql
sslmode=disable host=127.0.0.0.1 port=4568 user=postgres dbname=postgres