odbc icon indicating copy to clipboard operation
odbc copied to clipboard

Implement RowsColumnTypeDatabaseTypeName

Open hawkaa opened this issue 3 years ago • 1 comments

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

hawkaa avatar Mar 07 '22 15:03 hawkaa

@hawkaa thanks for creating the issue.

Let's continue this conversation on PR #171.

Alex

alexbrainman avatar Mar 10 '22 07:03 alexbrainman