Git Product home page Git Product logo

file_etl_importer's Introduction

file_etl_importer

This is an open source tool to import files, do any work (data transformation or/and data cleasing) and load data on repository (like relational or non relational DB, queues).

Features

  • Read file (tested using csv and txt extensions =) )
  • Transform data
  • Load data in database (working to PostgreSQL connection; more databases soon)

Dependencies

Config

In config file, you need to configurate parameters to read file, to connect database and to processing load.

The config file is in project root path, named config.toml.

Bellow, an example:

[file]
pathName = "/home/user/file.csv"
separator = ","

[processing]
numberOfThreads = 20
batchSizeCommit = 500
validateLineByLine = true #true to validate parameters length, line by line
removeDoubleQuote = true #true to remove double quote from all lines and all atributes

[database]
[database.postgres]
driver = "postgres"
user = "x"
password = "x"
port = "x"
dbname = "x"
host = "x"
maxOpenConns = 50
maxIdleConns = 10
schemaOutput = "x" #schema to save imported data
tableOutput = "x" #table to save imported data
[database.mongo]
#to do

Install and Execute

Go get it:

# Make sure GOPATH/bin is in your PATH
go get github.com/BurntSushi/toml
go get github.com/lib/pq
go get github.com/NeowayLabs/logger
go get github.com/julienschmidt/httprouter

Set config.toml file as you wish.

After that, you can build project:

# Make sure that you in project root path
go build

After build, you can run:

# Make sure that you in project root path
./file_etl_importer

file_etl_importer's People

Contributors

heniojr avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.