CSV2DDB

command
v0.0.0-...-548218a Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

README

CSV2DDB

A very basic application that will read in a CSV file and then create the required DDB Item objects to have them pushed into the specified DDB table.

Code is pretty straight forward and a basic execution command is:

CSV_FILE="testdata.golden.csv" DDB_REGION="us-west-2" DDB_TABLE="test" go run main.go items.go

Generate test data

for i in {1..62}; do echo "record$i,$(date "+%Y-%m-%d %H:%M:%S"),$(((RANDOM % 100)+1)),$(((RANDOM % 100)+1)),$(((RANDOM % 100)+1)),$(((RANDOM % 100)+1)),$(((RANDOM % 100)+1)),$(((RANDOM % 100)+1)),$(((RANDOM % 100)+1)),$(((RANDOM % 100)+1)),$(((RANDOM % 100)+1))"; done

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