dump

command module
v0.0.0-...-95d3fdb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2023 License: MIT Imports: 18 Imported by: 0

README

Fast CSV Exporter

Faster than navicat. Can used to export mysql, sqlserver, postgres, sqlite to csv file.

CLI Params:

Name Required Value
sharding no default: 1
tableName yes
csvFileName no default: tableName + ".csv"
dialect yes mysql, sqlserver, postgres, sqlite are supported for now
dsn yes https://gorm.io/docs/connecting_to_the_database.html
withHead no true or false. Default to true

Example

go run main.go -dialect mysql -tableName <tableName> -dsn "<username>:<password>@tcp(<host>:<port>)/<databaseName>?charset=utf8mb4&parseTime=True&loc=Local"

Demo

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL