-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Allow inferring source format from alternate string #95
Comments
@yajo |
Yeah, the point is that I want to pass the file through The use case is that I'm integrating sqlitebiter in a system (Odoo) that stores attachments in a content-addressable manner. The file is named I tried by symlinking a Thus, I wanted to just let it guess the format based on a filename that I can pass separately. Something like:
|
@yajo
Or
Are these methods of executing commands not solving your problem? |
Those require my app to know the format of the file. The whole point of this feature request is that I'd love to use sqlitebiter format autodetection, which is already coded here. So do those commands convert the file, but do not solve the issue. |
I feel that the use cases of the |
That should work
El sáb, 9 dic 2023, 10:01, Tsuyoshi Hombashi ***@***.***>
escribió:
… I feel that the use cases of the --format-from-filename option is too
limited.
How about adding file extension names (xlsx, etc.) support to the --format
option?
—
Reply to this email directly, view it on GitHub
<#95 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHNXDOB3O7NB2YNSRGCSXDYIQZHFAVCNFSM6AAAAAA7GHQF5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBYGM2TOOBVG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Is your feature request related to a problem? Please describe.
I'm integrating sqlitebiter into another system whose storage is content-addressable.
The file name on disk doesn't contain the original file name; only its content hash.
The original file name is stored elsewhere in a separate DB.
Describe the solution you'd like
A
--format-from-filename
option insqlitebiter file
and/orsqlitebiter stdin
that allows me to pass a filename to be considered for automatic format detection, instead of the filename of the file being processed (which BTW isn't available insqlitebiter stdin
mode).Describe alternatives you've considered
Creating a copy of the file with another name, converting it and removing it. Duplicates desired disk space, so it's not a good solution.
I also tried creating a symlink with the appropriate name that points to the hashed file. It doesn't work because:
--follow-symlinks
, it's skipped.The text was updated successfully, but these errors were encountered: