vapor / fluent-postgres-driver

🐘 PostgreSQL driver for Fluent.
MIT License
149 stars 53 forks source link

add default value #19

Closed tanner0101 closed 6 years ago

tanner0101 commented 6 years ago

This doesn't have a great use case yet, as it's impossible to set a model's property to nil and not have that nil forwarded to the DB (which overrides the default). But this can be further looked into in Fluent itself. Take a look at the tests added here to see a workaround.