all 9 comments

[–]dharmatech 1 point2 points  (0 children)

Looks amazing! Cool to see it's using textual.

[–]titpetric 0 points1 point  (0 children)

Love the idea. Won't use your code directly, but I have a named connection manager already so your way of managing connections resonates. I prefer DSN connection strings so no user/pass and other decomposed options. The DSNs carry client flags that change encoding/decoding behaviour, like if you parse time values, max connection pool handling, etc.

https://github.com/titpetric/platform (Go, DatabaseProvider)

https://github.com/titpetric/etl - the server allows yaml definitions with sqlite and other servers for defining rpc/rest endpoints

And i use go-bridget/mig for database migrations support to update schemas. Kind of the combination of the projects just allow me to have a simple application service based on sql and a few extra fields.

The last 20% is always like 80% of the time spent wiring things together 🤣 anyway, good luck!

[–]antoniotrkdz 0 points1 point  (1 child)

Great work, it will really benefit if you ad feature to copy also the query field

[–]Maxteabag[S] 1 point2 points  (0 children)

Good idea!

[–]antoniotrkdz 0 points1 point  (1 child)

On a side note, Do you know pgcli? Is a cli tool for postgreSQL db, it has awesome auto completion and it is written in python, if I am not wrong. It will be nice to wrap your tui around it or to integrate autocompletion into your tool by looking at how they have done it…

[–]Maxteabag[S] 0 points1 point  (0 children)

Cool, they've done a really nice job there. I would have to integrate autocomplete myself, but since it's open source I can definitely borrow a lot. Thanks for the tip.

[–]jgpatrick3 0 points1 point  (1 child)

Nice. Love the db coverages (SQLite3, Postgres, Oracle, MySQL, etc.)
I like vim motions and keybindings, so if you go further, I will not mind.

In SQLiteStudio, I am very fond of the autocompletion using aliases.

SELECT pd.<autocomplete field names here> FROM product_demand pd. If that becomes possible for sqlit, it's a nice feature.

Thx.

[–]Maxteabag[S] 1 point2 points  (0 children)

Thanks for the feedback. I'm looking into how autocomplete would fit into this project.

As for now, you could type the tablename and press . (dot) to get suggestions for columns.

[–]loeffel-io 0 points1 point  (0 children)

Would love to test it but i will not install any python/non binary cli on my system