Skip to content

Commit

Permalink
add new post about copilot - sql to csv
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrall committed Feb 10, 2024
1 parent e12441a commit ee623f3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ yarn-error.log*

/wip

/.vscode
/.vscode
19 changes: 19 additions & 0 deletions blog/2024-02-10-github-copilot-create-csv-from-sql.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: "Creating a CSV from SQL statements with GitHub Copilot"
description: "GitHub Copilot assists in creating a CSV from an SQL statements."
tags: [coding with copilot, github, copilot, python, images]
keywords: [coding with copilot, github, copilot, sql, csv]
image: /images/posts/2024-02-10/header.png
date: "2024-02-10T06:12"
---

During one of my test I had to create some CSV files, and needed some data. I could have used Copilot directly to generate random data, but I wanted to test something else.

In my SpringBoot PetClinic application, I have a SQL file that contains some data, and I wanted to use this data to create a CSV file, directly from the insert statements without any code.

The Copilot then effortlessly executed the specified tasks, as demonstrated in the accompanying video:


<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/_YFS7Wbzurc?si=Hy7sKxxPNpzIjS4b" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" fullscreen></iframe>

Note, I could have also use Copilot to do it directly from the database, but just wanted to see if Copilot could extract the data from the SQL file, and it did it!..
Binary file added static/images/posts/2024-02-10/header.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ee623f3

Please sign in to comment.