Added support for data samples using the "records" keyword - #15
Added support for data samples using the "records" keyword#15TheStaticTurtle wants to merge 1 commit into
Conversation
|
Heads up - did a local test run to backfill the missing
Generated Records.txt (277 lines)A few things I spotted while reviewing:
The fixture above matches the current grammar as-is. If you adopt the spec fix in point 2, the standalone case in the fixture will change slightly - easiest to re-run with the overwrite flag after the grammar edit. Thanks for the contribution - happy to open a small follow-up PR against your fork with these tweaks if that's easier than doing them yourself. |
Hi,
This PR adds support for data samples : https://dbml.dbdiagram.io/docs#data-sample
For some reason, my environment refuses to start tests, but I can successfully build it and use it inside the IDE:

Note that this change only provides the base syntax part, it does not check that columns actually exist or that the number of elements in
records_column_listmatches the number of elements inrecords_row