Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 712 Bytes

Readme.md

File metadata and controls

29 lines (19 loc) · 712 Bytes

Orba

Tools for organizing backfilling activity

Features

  1. generate and batch sql file from a csv
  2. auto backup to csv before each execution
  3. run your sql automatically

Quick Guide

  1. prepare your csv, the structure have to contains the fields that will be updated, and an "id" column
  2. run this command to generate the sql(s)
go run . gen --source <path to your csv> -t <table name> --size <batch size> --output <output dir>
  1. run this command to execute the backfill
go run . run --url postgres://<username>:<password>@<your_url>:<port>/<dbname> --source <output dir from prev step>

Wishlist

  1. Concurrent Execution
  2. generate create (or maybe upsert) query mode