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 Result<?> DSLContext.fetchFromTXT() to allow for loading results that were exported using Result.format() #2235

Closed
lukaseder opened this issue Feb 18, 2013 · 0 comments

Comments

@lukaseder
Copy link
Member

This is a consequence of a discussion with Aaron Digulla on the user-group:
https://groups.google.com/d/topic/jooq-user/OQzuxbqk-w8/discussion

Loading results from TXT could be particularly useful for unit testing through a MockFileDatabase: #2208. In particular, this method should support two modes:

  • H2 mode
  • Format mode

The H2 mode contains results formatted in this way:

F1  F2  F3 is a bit more complex
--- --  ----------------------------
1   2   and a string containing data
1.1 x   another string

...where the dash line specifies the column widths

The Format mode contains results formatted in this way:

+---+--+
|F1 |F2|
+---+--+
|1  |2 |
|1.1|x |
+---+--+

... where the first line specifies the column widths, and columns are padded with one space

lukaseder added a commit that referenced this issue May 3, 2013
results that were exported using Result.format()
lukaseder added a commit that referenced this issue May 3, 2013
results that were exported using Result.format() - Added test case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant