Skip to content

Add tests for sql row#497

Merged
snuyanzin merged 2 commits into
datafaker-net:mainfrom
snuyanzin:row
Oct 26, 2022
Merged

Add tests for sql row#497
snuyanzin merged 2 commits into
datafaker-net:mainfrom
snuyanzin:row

Conversation

@snuyanzin

Copy link
Copy Markdown
Collaborator

A bit more crazy stuff...
SQL ROW is already supported, now more tests for that
so just with usage of compositeField it's possible to have SQL nested structure like ROW
e.g.

Schema.of(compositeField("row_row",
       new Field[]{field("name1", () -> "1"), compositeField("row", new Field[]{field("name", () -> "2")})}))

could be used to generate something like that

INSERT INTO "MyTable" ("row_row") VALUES (ROW('1', ROW('2')));

@snuyanzin
snuyanzin merged commit 9706ecd into datafaker-net:main Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant