Skip to content

fast export excel file from data source(database, csv file),a million rows in dozens seconds with low memory

License

Notifications You must be signed in to change notification settings

MrSong0607/huge-xlsx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

a tool to fast transform data from csv or export data from mysql to excel file.

command option

  -H    set first line of csv file as header in every sheet
  -c string
        the field delimiter(in csv mode only),default: ,
  -h    show help
  -i string
        input file path
  -m string
        the import mode<csv, sql>
  -o string
        output file name,default: huge.xlsx
  -s string
        connection string in sql mode,like: username:password@tcp(ip:port)/database?charset=utf8mb4

export from mysql

huge-xlsx -m sql -i query.sql -o sql.xlsx -s 'username:password@tcp(ip:port)/database?charset=utf8mb4'

transform from csv file

huge-xlsx -m csv -i test.csv -o test.xlsx -H 

About

fast export excel file from data source(database, csv file),a million rows in dozens seconds with low memory

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages