Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for sql row #497

Merged
merged 2 commits into from
Oct 26, 2022
Merged

Add tests for sql row #497

merged 2 commits into from
Oct 26, 2022

Conversation

snuyanzin
Copy link
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