-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new post about copilot - sql to csv
- Loading branch information
Showing
3 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,4 @@ yarn-error.log* | |
|
||
/wip | ||
|
||
/.vscode | ||
/.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!.. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.