94 points · by yen223 · 2y ago · 46 comments
The key feature is the SQL query editor. The query editor was designed to be mobile-friendly. With autocomplete and a touch-friendly way to select parts of a SQL query, writing SQL statements with the query editor can - in some cases - be faster than typing the same query on a desktop.
The app supports the usual SQL client things:
- Browsing schemas, tables, and columns
- Running custom SQL statements
- Viewing results as a list, or as a table.
- Exporting results to CSV
- Saving queries (You can save one query in the free version)
The project is in very early stages, and is still missing a lot of features - notably the ability to insert, update, delete, or perform DDL via the query editor.
The app currently only supports Postgres, and is currently only available on Android.
Please give it a spin, and let me know if you have any feedback or feature requests.
Website: https://getselectable.com/
Play store: https://play.google.com/store/apps/details?id=net.weiyen.sel...
I'm not trying to replace desktops with mobile here. I think database administration is still going to be easier with a big monitor and a keyboard, and that's not going to change.
Rather I'm trying to open up database administration to people who don't have desktops, or who are more comfortable working on their phones.
Looks like very nice UI model, it’s not an easy problem to solve. Also one of the few times a portrait YT video is wholly appropriate.
Sadly this specific app doesn't seem very polished or useful.
With the tri-fold mobiles and Samsung Dex like feature coming, that day may not be far when mobile become the single work machine.
- When in the table explorer it's odd that the primary action - viewing a table - is behind a dropdown menu. maybe clicking the table name opens the browse rows screen and clicking a column opens with a select prefilled.
- Please default to a limit 500 or something like Jetbrains to prevent me making stupid mistakes.
For professional use cases, maybe if you're on call and need to access the DB over your phone (though I hope I'm never in that spot). Having documentation around network model - do you relay queries through your own backend - and the security model for data and credentials. Do you support any secure connection methods, like SSH tunnel, or does the PG need to be facing the public internet?
I did not know about wasm-postgres, thanks!
> Having documentation around network model - do you relay queries through your own backend - and the security model for data and credentials. Do you support any secure connection methods, like SSH tunnel, or does the PG need to be facing the public internet?
There's no backend, the app opens a connection directly to the database. Credentials are stored on-device. No data will ever be shipped to a third-party without user consent, and I will never change this. (This is a large part of why I haven't put in any "AI" features yet.)
The app currently does not support SSH tunneling. This is something I will be working on soon.
Also fair point on the documentation. There's currently 0 docs around the app, and I'm not proud of that.
You could also hide it behind tailscale/nebula or some other VPN thing.
public key cryptography is well understood and used everywhere: HTTPS, SSH, Signal, etc.
See: https://en.wikipedia.org/wiki/Public-key_cryptography
In postgres specifically: https://www.postgresql.org/docs/16/ssl-tcp.html and https://www.postgresql.org/docs/16/runtime-config-connection...
You can enforce TLSv1.3 on all network connections using `ssl_min_protocol_version`(postgres.conf) and `hostssl`(in pg_hba.conf)
This puts you ahead of most web servers which often still allow TLSv1.1.
You can make Postgres secure or not, your call. Just like with everything else.
Fancy seeing a full-blown mobile Postgres editor. I can definitely see a few use cases but I'm curious whether your average Db admin or data engineer will be interested in using a tool like this.
I wonder what other apps are just RDB wrappers that could almost be substituted with something like this.
Thanks for sharing!
Also, several Postgres providers now also provide a SQL editor / runner and table visualizer in their UI.
What do Postgres users here think is the biggest missing thing in current clients? Are they too heavyweight? Too generic and don't support advanced Postgres features? Don't look modern enough? Not mobile friendly? Or is it something else?
i.e. maybe there could be a searchable list of common sql solutions and then somehow adjust that to suit the actual problem (hopefully without ending up a cluttered mess of sql)
This is a good idea, thanks for the feedback!
Add an AI query tool - you could do it on-device with something like functionary ggml and llama cpp with a few functions:
getSchemaForTables(...) getTableStats() runQuery('...')
Then you could do a query like:
"show me all customers who regularly post between midnight and 1am"
From my understanding, usable on-device LLM models tend to be gigabytes-large, which makes it difficult to roll out to everyone. Apple Intelligence might make this feasible, will need to do more research on this when I do the iOS port.
Making AI an optional add-on might be doable.
Thanks for the feedback!
So in my king there is a brief spark of "why does this site want to make me selectable?"
One saved query is super restrictive though, basically means either pay, or don't even bother to install.
Re. the saved query restriction - I am planning to work on this app in the long term, which unfortunately means I have to monetise the app in order to sustain development work.
I believe restricting saved queries and saved connections is a good compromise to allow casual users to try out all the features the app has to offer, without imposing a time limit.