dinedal/textql hiện có 9.1k sao trên GitHub, viết chủ yếu bằng Go. Execute SQL against structured text like CSV or TSV
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Allows you to easily execute SQL against structured text like CSV or TSV.
Example session:
Major changes!
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.
Changes since v1
Additions:
Numeric values are automatically recognized in more cases.
Date / Time / DateTime values are automatically recognized in reasonable formats. See Time Strings for a list for accepted formats, and how to convert from other formats.
Added join support! Multiple files / directories can be loaded by listing them at the end of the command.
Directories are read by reading each file inside, and this is non-recursive.
You can list as many files / directories as you like.
Added flag '-output-file' to save output directly to a file.
Added flag '-output-dlm' to modify the output delimiter.
Added "short SQL" syntax.
For the case of a single table, the FROM [table] can be dropped from the query.
For simple selects, the SELECT keyword can be dropped from the query.
This means the v1 command textql -sql "select * from tbl" -source some_file.csv can be shortened to textql -sql "*" some_file.csv
Changes:
The flag '-outputHeader' was renamed to '-output-header'.
Removals:
Dropped the ability to override table names. This makes less sense after the automatic tablename generation based on filename, joins, and shorter SQL syntax changes.
Removed '-source', any files / paths at the end of the command are used, as well as piped-in data.
Bug fixes:
Writing to a directory no longer fails silently.
Key differences between textql and sqlite importing
sqlite import will not accept stdin, breaking unix pipes. textql will happily do so.
textql supports quote-escaped delimiters, sqlite does not.
textql leverages the sqlite in-memory database feature as much as possible and only touches disk if asked.
Is it any good?
Yes
Requirements
Go 1.4 or later
Install
Latest release on Homebrew (OS X)
brew install textql
Build from source
go get -u github.com/dinedal/textql/...
Docker
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]
Alias
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 '
AUR
Using an AUR-Helper
yaourt textql-git
Building from PKGBUILD
First clone the repository.
makepkg -cs
Then install the package using pacman or your favorite Package Manager
Usage
textql [-console] [-save-to path path] [-output-file path] [-output-dlm delimter] [-output-header] [-pretty] [-quiet] [-header] [-dlm delimter] [-sql sql_statements] [path ...]
-console
After all statements are run, open SQLite3 REPL with this data
-dlm string
Input delimiter character between fields -dlm=tab for tab, -dlm=0x## to specify a character code in hex (default ",")
-header
Treat input files as having the first row as a header row
-output-dlm string
Output delimiter character between fields -output-dlm=tab for tab, -dlm=0x## to specify a character code in hex (default ",")
-output-file file
Filename to write output to, if empty no output is written (default "stdout")
-output-header
Display column names in output
-quiet
Suppress logging
-pretty
Pretty print output
-save-to file
SQLite3 db is left on disk at this file
-sql string
SQL Statement(s) to run on the data
-version
Print version and exit
I want stdev, average, other functions
Just follow the install directions at go-sqlite3-extension-functions and textql will automatically load this library.
dinedal/textql có 9.1k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/dinedal/textql. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
dinedal/textql có phải mã nguồn mở không?
Có — dinedal/textql phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/dinedal/textql.
dinedal/textql còn đang phát triển không?
Commit gần nhất trên dinedal/textql là 3.1 năm trước (theo timestamp GitHub). Repo có 294 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
dinedal/textql là gì?
dinedal/textql (dinedal/textql) là dự án Go trên GitHub. Theo mô tả gốc: Execute SQL against structured text like CSV or TSV
Đọc thêm về dinedal/textql ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/dinedal/textql là nguồn chính thức.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về textql?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về textql.