Skip to content

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.

License

Notifications You must be signed in to change notification settings

Hasuk1/Proxy-Server-with-logging-SQL-queries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Proxy server for logging sql queries

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.

Build and start proxy-server

Run proxy-server

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

Connect to proxy-server (need to use a different terminal)

make connect_to_db

psql sslmode=disable host=127.0.0.0.1 port=4568 user=postgres dbname=postgres

Working Demo



About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published