PyCharm
 
Get PyCharm
You are viewing the documentation for an earlier version of PyCharm.

Data extractors

Last modified: 12 October 2022

Available only in PyCharm Professional: download to try or compare editions

Data extractors set rules of how to copy or view your data in the editor (in the Text view mode). You can select a default extractor from the list near the Export Data icon (The Export Data icon), configure the existing extractor, or create a custom extractor by using Groovy or JavaScript.

In PyCharm, the last selected extractor becomes the default one for newly opened editor tabs. For MongoDB, the default extractor is always JSON.

There are several built-in formats. You can export data as a set of INSERT or UPDATE statements, or as a part of the WHERE clause. Also, you can select text formats like CSV, JSON, HTML, or Markdown. For more information about exporting, see the Export section.

https://resources.jetbrains.com/help/img/idea/2022.3/db_data_extractors_json.png
Gif