public static Connection getConnection() {
//        ConnectInfo connectInfo = getConnectInfo();
//        Connection connection = connectInfo.getConnection();
//        try {
//            if (connection == null || connection.isClosed()) {
//                synchronized (connectInfo) {
//                    connection = connectInfo.getConnection();
//                    try {
//                        if (connection != null && !connection.isClosed()) {
//                            log.info("get connection from cache");
//                            return connection;
//                        } else {
//                            log.info("get connection from db begin");
//                            connection = getDBManage().getConnection(connectInfo);
//                            log.info("get connection from db end");
//                        }
//                    } catch (SQLException e) {
//                        log.error("get connection error", e);
//                        log.info("get connection from db begin2");
//                        connection = getDBManage().getConnection(connectInfo);
//                        log.info("get connection from db end2");
//                    }
//                    connectInfo.setConnection(connection);
//                }
//            }
//        } catch (SQLException e) {
//            log.error("get connection error", e);
//        }
        return ConnectionPool.getConnection(getConnectInfo());
    }
Get the ContentContext of the current thread

@return
chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/sql/Chat2DBContext.java