alibaba/druid ? reverse-engineered prompt
Reverse engineered prompt
Build me a Java library for database connections that feels production ready and easy to drop into an existing app.
I want a high performance connection pool with monitoring built in, plus SQL parsing and formatting, and a basic SQL safety layer that can block risky statements. It should work cleanly with Spring Boot so I can just add it and configure datasource settings in application files. I’d also like a simple web monitoring page where I can see connection pool status and SQL stats, and a way to turn on slow SQL logging.
Please make the core usable on its own too, with a straightforward way to create a datasource, get a connection, and run SQL. If it makes sense, include support for multiple database types and the ability to inspect or rewrite SQL. Look up current docs online if you need to, and keep the implementation easy to understand and test.
Are you gonna build this?
make sure you review the code using coderabbit