- Split one big table file to multiple table record files.
- Merge multiple table record files to one big table file.
- Convert git log commit data to csv format which shows the total number of lines in a file on each date
Create a dbs.json
file with content:
{
"repoPath": "dbs"
}
Run the following commands:
npx @db-man/cli split
npx @db-man/cli split iam/users # If only process one table file at a time.
Run the following commands:
npx @db-man/cli merge
npx @db-man/cli merge iam/users # If only process one table file at a time.
Run the following commands:
node bin/cli.mjs mergeUpdatedTables 787fc97a43ff53b42288527b28fdb810a519c524
The sha is from GitHub Actions pipeline env var GITHUB_SHA
.
Run the following commands:
npx @db-man/cli insights iam/users
Copy the output to a file lines.csv
, then use https://csvplot.com/ to plot the chart.