mariusz96 / csv-join-sql

A command-line tool for performing full outer joins on CSV files in C# .NET Core using SQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSV Join SQL

A command-line tool for performing full outer joins on CSV files in C# .NET Core using SQL:

CsvJoin.SqlGenerator.exe Data sales.csv new_sales.csv > SQLQuery.sql
CsvJoin.exe SQLQuery.sql Data > joined_sales.csv

Features:

  • Execute SQL against CSV files
  • Save auto-generated SQL
  • Save results to CSV

Prerequisites:

  • Microsoft Access Database Engine 2016 Redistributable
  • .NET Core 3.1
  • Visual Studio 2022

Build and run:

VS:

  • src\CsvJoin.sln > Build > Build Solution

Cmd:

  • CsvJoin.SqlGenerator.exe Data sales.csv new_sales.csv > SQLQuery.sql
  • Verify that the generated file (SQLQuery.sql) does not contain SQL injection
  • CsvJoin.exe SqlQuery.sql Data > joined_sales.csv

Acknowledgements:

About

A command-line tool for performing full outer joins on CSV files in C# .NET Core using SQL


Languages

Language:C# 100.0%