Rule set for dynamic schema
- Dominant language
- C#
- Stars
- 9.7k
- Forks
- 538
- PR merge metrics
- No merged PRs in 30d
Description
Is it possible to configure Bogus to generate amorphic data container according to dynamic schema ?
I'm discovering arbitrary DB table and have `System.Data.DataColumn[]` as the discovered schema.
From this schema I want to generate multiple `System.Data.DataRow` elements, that comply with the discovered schema :
````c#
var row = table.NewRow()
foreach(c: table.Columns){
row[name] = faker.RandomValueForType(c.DataType)
}
````
The above pseudo code would be great to have as generator/instantiator which can be shared.
Thanks
Contributor guide
Research direction
Start by examining the requested System.Data.DataColumn[] to DataRow flow, including table.NewRow and faker.RandomValueForType(c.DataType). Done would be a shared Bogus generator or instantiator that creates multiple rows conforming to an arbitrary discovered schema, but the issue does not identify files or tests to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100