Execute SQL against structured text like CSV or TSV
Allows you to easily execute SQL against structured text like CSV or TSV.
Example session:
In the time since the initial release of textql, I've made some improvements as well as made the project much more modular. There've also been additional performance tweaks and added functionality, but this comes at the cost of breaking the original command-line flags and changing the install command.
Additions:
FROM [table] can be dropped from the query.SELECT keyword can be dropped from the query.textql -sql "select * from tbl" -source some_file.csv can be shortened to textql -sql "*" some_file.csvChanges:
Removals:
Bug fixes:
Latest release on Homebrew (OS X)
brew install textqlBuild from source
go get -u github.com/dinedal/textql/...First build the image.
docker build -t textql .Now use that image mounting your current directory into the container.
docker run --rm -it -v $(pwd):/tmp textql [rest_of_command]You can add the following alias to your system to provide quick access to TextQL:
alias textql='docker run --rm -it -v $(pwd):/tmp textql 'Using an AUR-Helper
yaourt textql-gitBuilding from PKGBUILD First clone the repository.
makepkg -csThen install the package using pacman or your favorite Package Manager
…Just follow the install directions at go-sqlite3-extension-functions and textql will automatically load this library.
Full function list:
New MIT License - Copyright (c) 2015, 2016 Paul Bergeron http://pauldbergeron.com/
See LICENSE for details
"brew install textql" doesn't work anymore
no such function: timediff
Neither CONCAT nor || are working for concatenating
request a new release
Magicify() sometimes turnes double quotes into single quotes
TestCSVInputHasAName fails with Go 1.17
Webservice version
Cannot spawn a Docker container running as unprivileged user
Release new version with go modules
Infinite loop generating newlines with semicolon and newline in the query