csv-2-sql-example

command module
v0.0.0-...-3db8586 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 8 Imported by: 0

README

Introduction👨‍💻

This program is written with GO to show how to read csv files and register them in the database

Usage

flags

-config=config.json or --config=config.json
-file=file.csv or --file.csv=file.csv

config includes db information for insert csv

{
  "username": "postgres",
  "password": "postgres",
  "host": "localhost",
  "name": "exel2sqldb",
  "ssl": "disable"
}

Examples

Windows

go run main.go -file=C:\file\path\username.csv

OR

.\build.exe -file=C:\file\path\username.csv

Linux

go run main.go -file=/file/path/username.csv

OR

wine start -file=/file/path/username.csv

Tech Stack

Database: postgresql

Lang: GO

github.com/savioxavier/termlink v1.3.0
github.com/lib/pq

Authors

Demo

Screenshot 2023-10-24 211725

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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