Skip to content

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

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

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

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages