-
Notifications
You must be signed in to change notification settings - Fork 21
Writing support #87
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
Closed
Closed
Writing support #87
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
9ad8e3c
Add writing support
TonyLianLong 1bbaef1
Add libreadstat into readstat_begin_row and readstat_end_row, pass po…
TonyLianLong 150e1cd
Add handle_write and fix several syntax errors
TonyLianLong fcfc6fe
Update writing
TonyLianLong 9f5c76e
Change functions for writing and export write functions
TonyLianLong 2a1690a
Merge branch 'master' into writing_support
jkrumbiegel dd9da3f
remove merge artifact
jkrumbiegel e952bdc
add write_xport
jkrumbiegel adca45e
ignore write_tests
jkrumbiegel bc9fd1f
add Tables as dependency
jkrumbiegel b952f76
add xport write function
jkrumbiegel 9913a38
make writing doubles work again
jkrumbiegel d40c96b
refactor double type
jkrumbiegel b77a19d
add more insertion functions
jkrumbiegel d122d22
add variable insertion and string length logic
jkrumbiegel 39c4751
more tests
jkrumbiegel dc8998b
remove duplicated line
jkrumbiegel 85e781c
adjust tests to reflect type limitations in output formats
jkrumbiegel 810aab6
add comment
jkrumbiegel 40e93f6
throw for uninferred table schema
jkrumbiegel 117465e
add broken long string test
jkrumbiegel 26dfb36
pass file label via kwargs
jkrumbiegel b2c48c4
add filelabel test
jkrumbiegel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ deps/build.log | |
*.jl.mem | ||
Manifest.toml | ||
.vscode | ||
test/write_tests/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea of this package here is that it is a low-level wrapper around the C library that itself doesn't take any dependency on either Tables.jl or TableTraits.jl or anything like that. The idea is also that this package here typically won't be used by end-users directly, in the realm of Queryverse the end-user package really is https://github.com/queryverse/StatFiles.jl, and that is the package that for example brings the integration with TableTraits.jl along.
So ideally this package here would continue to not take a dependency on either Tables nor TableTraits, but instead just expose relatively low-level functions to write files and stay a package with as few dependencies as possible. And we can then add user-facing APIs to either StatFiles.jl, or any other package if someone wants to provide a more Tables.jl centric experience, and then those user-facing packages can share the implementation in this package here.