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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址