Skip to content

Simple portofolio project to create an all-purpose excel to SQL statements generator, possibly to extend to GUI in the future

Notifications You must be signed in to change notification settings

joanjanku2000/xlsx-sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xlsx-sql

Simple project to create an all-purpose excel to SQL statements generator.

Coded in the form of a library to be included in any project, but will be used in a REST API Soon.

The excel that is taken as an input should have the column names in the first row/ Each excel column name will be translated into an SQL column name using the following conventions: ( COLUMN_NAME - the column name in excel, VALUE - value in the excel row/cell)

EXCEL ---- DB
COLUMN_NAME --- COLUMN_NAME
COLUMN_NAME* --- WHERE COLUMN_NAME = VALUE
COLUMN_NAME>V=VALUE&S=VALUE_2&?=VALUE_3 --- Values in the excel matching V are inserted/updated as VALUES , values in the excel matching S are inserted/updated as VALUE_2 , any other value is inserted/updated as VALUE_3
COLUMN_NAME<=>id-name|users --- insert/update value of COLUMN_NAME using Foreign Key Constraint - select id from users where name = VALUE
(COLUMN_NAME) --- Ignore column

About

Simple portofolio project to create an all-purpose excel to SQL statements generator, possibly to extend to GUI in the future

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages