private Map<String, String> getPrimaryKeyMap(Connection connection, String databaseName,
                                                 String schemaName, String tableName) throws SQLException {
        Map<String, String> primaryKeyMap = new HashMap<>();
        try (ResultSet primaryKeys = connection.getMetaData().getPrimaryKeys(databaseName, schemaName, tableName)) {
            while (primaryKeys.next()) {
                primaryKeyMap.put(primaryKeys.getString("COLUMN_NAME"), "");
            }
        }
        return primaryKeyMap;
    }
@param connection
@param databaseExportDataParam
@param file
chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/rdb/data/sql/SqlDataExporter.java