GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - JerryFZhang/ExcelToSQL: Excel to SQL insertion code generator.

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
Required Modules
Required Modules
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
data.xls
data.xls
 
 
run.py
run.py
 
 

Repository files navigation

ExcelToSQL

This a program written in python that take an xls file as a input, generate csv code for each sheet stored, and generate SQL insertion code for a quick databse testing. Some of the cool features including

  • checking if the file exist or not and then create or wipe the file if necessary
  • check the datatype and parse string and int differently

How to use

  • There are three ways to download the file:
    1. Download the repo as a zip.
    2. Download the run.py file only.
    3. Or clone the repo by typing the following command into your terminal:
git clone https://github.com/zhang96/ExcelToSQL

Install the require modules including:

  • xlrd
  • pandas

Put the spreadsheet file in the folder and name it as data.xls, make sure it ends with .xls not .xlsx.

  • There are two ways to run the file:
    1. Run the file IDLE or other IDEs.
    2. Set the directory in the terminal and then type the following command into the terminal
python run.py

#Todo

  • Add inline comments
  • Code logic optimization
  • Support for *.xlsx files insted of only *.xls files.
  • Support for other datetypes other thah int and string.
  • Eliminate csv intermidiated generation.
  • Option to generate all insertion into a single *.sql file.

#Author zhang96

#License MIT, see LICENSE.txt.

About

Excel to SQL insertion code generator.

Topics

csvcsv-convertercsv-importcsv-parserinsertionsqlsql-insertxls

Resources

Readme
MIT license
Activity

Stars

5 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.