
and : extractors that generate a txt file with fixed length columns. on GitHub: copy tab-separated query results and to paste them to Excel as comma-separated.ĭbunit Dataset Export in Groovy on GitHub: an extractor for Dbunit export. Also, you can try the following extractors: You can use code of other extractors in the extractors folder to write your extractor. Type or paste the code of the extractor in a new file.

PHP: the name that is used in the extractor menu. Type the filename (for example, ), where: Right-click the extractors node and select New | File. In the Files tool window ( View | Tool Windows | Files), navigate to Scratches and Consoles | Extensions | Database Tools and SQL | data | extractors. When the format is created, you can select it in the drop-down list near the Export Data icon ( ). Specify a name of a new format (for example, Confluence Wiki Markup).ĭefine settings of the format: set separators for rows and headers, define text for NULL values, specify quotation. In the CSV Formats dialog, click the Add Format icon. If you open a different table, the extractor defaults to CSV.įrom the list of data extractors, select Configure CSV formats. Beginning from DataGrip 2020.1, you set the extractor for a single table. Also, you can select text formats like CSV, JSON, HTML, Markdown, and other formats (for more information about export options, see Import/Export options.īefore DataGrip 2020.1, if you select the default extractor from the list, you set this extractor as default for the whole IDE. You can export data as a set of INSERT or UPDATE statements.

You can select a built-in export format from the list near the Export Data icon ( ). On the toolbar, click the Export Data icon ( ) and select Copy To Clipboard. Select data in the result set or in the editor and press Ctrl+C. In the Export Data dialog, click Export to File. On the toolbar, click the Export Data icon ( ) and select Export to File. Right-click a query and select Export Data to &File. Right-click a result set, a table, or a view, select Export Data. To export data to a file, perform one of the following actions:

You can export or copy to the clipboard any result set, table, or view. You can select a predefined format or create your own.įor more information about export and import operations, see the corresponding section. DataGrip has an engine to export and import data in various formats.
