alexbrainman / odbc

odbc driver written in go
BSD 3-Clause "New" or "Revised" License
356 stars 141 forks source link

Implement RowsColumnTypeDatabaseTypeName #174

Open hawkaa opened 2 years ago

hawkaa commented 2 years ago

Hi @alexbrainman ,

Thank you again for a great repository.

We're maintaining a fork over at duneanalytics/odbc.

Recently, we need to be able to detect which SQL types columns in a query has. Doing so required us to implement the RowsColumnTypeDatabaseTypeName interface. This allows us to call ColumnTypeDatabaseTypeName(i) on a result set to get a string representation of a type so we know if we're dealing with a string, float, boolean, and so on.

The code we've implemented in #171 . I see the same thing is implemented in #114.

I think the users of this repository benefits from implementing more of the standardized database/sql interfaces like this one and #173 .

Håkon

alexbrainman commented 2 years ago

@hawkaa thanks for creating the issue.

Let's continue this conversation on PR #171.

Alex