honeysql-postgres
honeysql-postgres copied to clipboard
A better implementation of for with-column (create-table)
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.
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