Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 1.76 KB

TODO.md

File metadata and controls

60 lines (44 loc) · 1.76 KB

Todo

Implement error handling in the generator

Add more date logic

  • Currently all dates are on the first of the month.

Done

Add a CLI interface

  • Allow specifying the location of the config file (default to ./config.toml).
  • Allow specifying the location of the resulting JSON file (default to ./fake_data.json).
  • Debug mode which prints the parsed config and resulting data?
  • Output a success message informing the user how many rows and columns where generated.
  • Implement error handling.

Allow using a config file to define the structure of the fake data

Separate the data generation logic into lib files

  • Call the lib from the main.rs file

Use a full ISO 8601 date time in UTC

Convert to JSON

  • Add serde_json
  • Add a top level key
  • Write result to a file

Don't include the current row id in references.

Don't recreate pools for each row

  • The idea is that they re-use the same pools.

Basic types of data

  • Sequencial number
  • Date
  • Random text
  • Comma separated text
  • Hierarcical data (A, A1, A2, B, B1, B2)
  • Reference to other row

Skipped

Split out each column type to their own methods

  • The aim is to allow composing different sets of columns instead of the fixed example we have now in generate_row.
  • This isn't really necessary, could revisit in the future.