I have a postgre table with "id" as SERIAL(auto-increment column), "name" and "instruction" columns.
I'm trying to insert into it as:
(ql/conj! recipe-table {:id nil :name "a" :instructions "b"})
*Evaluation aborted
(ql/conj! recipe-table {:id :default :name "a" :instructions "b"})
*Evaluation aborted
(ql/conj! recipe-table {:name "a" :instructions "b"})
*Evaluation aborted
But:
(ql/conj! recipe-table {:id 1 :name "a" :instructions "b"})
works, it just inserts the 1 into id, but it doesn't do the auto-increment part.
So I have access to the table, I have rights to write into it as proven by the last conj!, I just can't write it with a default value.