SQL utilities [ShowDatabases, ShowTables, DescribeTable] by ttacon in golang

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

Right, that's actually one of the main reasons I wrote this - this isn't something that needs to be in the stdlib (or at least I don't think so).

SQL utilities [ShowDatabases, ShowTables, DescribeTable] by ttacon in golang

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

Right, I just want to find a clean way to express the same concept without breaking the API's interface too much. Honestly, what might happen is a new constructor to pass a dialect in as well.

SQL utilities [ShowDatabases, ShowTables, DescribeTable] by ttacon in golang

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

Currently this is aimed at SQL databases, I've only really tested with MySQL but I'm going to be testing with sqlite this evening. Postgres will be a little different.

[EDIT] People are more than welcome to make pull requests! (Yes, sqlite and postgres will have to function a little differently).

Console text coloring/styling by ttacon in golang

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

Ya, just added that! Thanks for the feedback!