Hakoy
Parse and organize CSV data into timestamp-sliced directories.
Usage
Hakoy.configure do
root_dir: '/app/data'
end
conf = {
db_id: 'your file dir to store results',
timestamp_key: 15,
required_keys: [
customer: 24,
product: 17,
timestamp: 15,
price: 18,
order_id: 0
]
}
Hakoy.('data/order.csv', conf)
It creates and organizes directories and files using timestamps. Below is a sample screenshot.
TODO
- Better unique key generation algorithm. It is too primitive now.