Skip to content

Get SQL type of a column #393

@mgirlich

Description

@mgirlich

It would be useful to somehow get the SQL type of a column, e.g. via dbColumnInfo(). There is also an old issue #78 but this was never really solved.
(By the way this is already possible for Postgres)

This would be useful for the rows_*() methods in dbplyr. E.g. in Postgres I work with array or json(b) columns. As Postgres is pretty strict about types I need explicit casts to the correct type. I guess the same thing would make sense for other databases as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions