I wonder how I would use a default value for a boolean in SQLite in swift. I am using the following library: https://github.com/stephencelis/SQLite.swift I have a query that won't be executed if I don't use all values.
I am doing this in a loop:
let insert = table.insert(name <- names[i])
Catches error:
NOT NULL constraint failed: table.bool (code: 19)
My problem here is that I want the bool value to be a default of NULL.
I tried to create my database with a default value like this:
let bool = Expression<Bool?>("bool")
So what can I do to create default values in SQLite in swift?