Usql: Universal command-line interface for SQL databases
38 points
7 days ago
| 1 comment
| github.com
| HN
1vuio0pswjnm7
6 days ago
[-]

   119K 2024-07-12 02:01 /usr/local/bin/pg_ctl
   737K 2024-07-15 01:01 /usr/local/bin/pg_dump
   528K 2024-07-15 01:09 /usr/local/bin/pg_restore
   8.1M 2024-07-12 02:01 /usr/local/bin/postgres
   848K 2024-07-12 02:01 /usr/local/bin/psql
   
   /usr/local/bin/pg_ctl:      ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), static-pie linked, stripped
   /usr/local/bin/pg_dump:     ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), static-pie linked, stripped
   /usr/local/bin/pg_restore:  ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), static-pie linked, stripped
   /usr/local/bin/postgres:    ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), static-pie linked, stripped
   /usr/local/bin/psql:        ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), static-pie linked, stripped
https://github.com/xo/usql/releases/download/v0.19.12/usql_s...

   185M 2024-10-24 07:58 usql_static

   usql_static: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=33c121e6b03ea90eb1dc1b79190b5ef71658f120, for GNU/Linux 3.2.0, stripped
185M! Wow. I just want to query postgres with socat.
reply
dlock17
5 days ago
[-]
It seems to support quite a large number of database drivers. If file size is such a concern you could recompile it with unneeded drivers omitted.

https://github.com/xo/usql?tab=readme-ov-file#building

reply