honeysql-postgres icon indicating copy to clipboard operation
honeysql-postgres copied to clipboard

A better implementation of for with-column (create-table)

Open ukriish opened this issue 9 years ago • 1 comments

As of now it is using sql/call to generate various constraints for columns, which shouldn't be the case as they are not really sql function calls.

Possible better implementation would be a map for each column, which can be generated using helpers.

ukriish avatar May 19 '16 07:05 ukriish

Is it possible to make create-table work with the example of [:kind (sql/call :varchar 10)]. Trying to execute this throws PSQLException ERROR: syntax error at or near "$1" looks like parameters can not be passed to create table. Is this correct?

I was able to get it to working by just using sql/raw

jkida avatar Jul 18 '18 19:07 jkida