Programmatic definition of data sets
See original GitHub issueIs it possible to programmatic define data sets?
Something like in jdbdt http://jdbdt.org/DataSets.html
DataSet data =
builder(t)
.sequence("ID", 1) // 1, 2, 3, ...
.sequence("LOGIN", "harry", "mark", "john")
.sequence("NAME", "Harry H", "Mark M", "John J")
.sequence("PASSWORD", i -> "password " + i , 1)
.random("CREATED", Date.valueOf("2015-01-01"), Date.valueOf("2015-12-31"))
.generate(3) // generate 3 rows
.sequence("LOGIN", i -> "guest_" + i, 4) // "user_4", "user_5", ...
.sequence("NAME", i -> "Guest User " + i, 4) // "Guest User 4", ...
.value("password", "samePasswordForAllGuests")
.generate(6) // 6 more rows keeping ID sequence and CREATED random filler
.data();
This will improve refactoring in case of database schema changes, also generation can be simplified.
Issue Analytics
- State:
- Created 4 years ago
- Comments:71 (45 by maintainers)
Top Results From Across the Web
Using Programmatic Data to Optimize Search | Power Digital
Programmatic is the ultimate way to arrange mass amounts of data into audiences that are meaningful to your brand or business.
Read more >Programmatic Definition & Meaning - Dictionary.com
of, relating to, or employing a computer program: The coders found a programmatic solution to automate data processing.
Read more >3 Session 3: Programmatic metadata and data access
It is written in XML, which consists of a series of nested elements. The element definitions, required elements, and structure are all defined...
Read more >DataSets, DataTables, and DataViews - ADO.NET
Programmatically create a DataTable, DataRelation, and Constraint within a DataSet and populate the tables with data. Populate the DataSet with ...
Read more >1-programmatic-data-analyses - UofT Coders
Spreadsheet software is great for viewing and entering small data sets, and for quickly creating simple visualizations. However, it can be tricky to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Done, see changes here https://github.com/rmpestano/database-rider/commit/758b574c0719162a9b6b62b82d9e2e3d32b16270
Hey folks, anything else we should consider before merging the PR?
I would like to thank you for all the ideias and your time discussing the DataSetBuilder API and reviewing the PR in details.
On the first moment I don’t even consider It would be a good ideia to add such builder but now, thanks to you all, I’m not just certain but am sure that the DataSetBuilder can bring a lot more users to our API, so again thank you very much!