IreneKnapp/direct-sqlite — pull request #26 by joeyadams (2013-05-05 04:48:06+00:00)
Title: Add columnName (sqlite3_column_name)

This adds support for `sqlite3_column_name`, which return the name of a result column. Example:

```
> import Database.SQLite3
> conn <- open ":memory:"
> exec conn "CREATE TABLE foo (abc TEXT, d INT)"
> stmt <- prepare conn "SELECT *, randomblob(32) FROM foo"
> columnName stmt 0
Just "abc"
> columnName stmt 1
Just "d"
> columnName stmt 2
Just "randomblob(32)"
> columnName stmt 3
Nothing
```

@nurpax: This might be an easy way to provide column information for conversion errors in sqlite-simple (https://github.com/nurpax/sqlite-simple/issues/20).