Supporting default column value.
CREATE TABLE test (
id INTEGER PRIMARY KEY AUTOINCREMENT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
If I want to use this scheme with ORM(note the DEFAULT CURRENT_TIMESTAMP), how can I write my class? I can't find the attribute supporting this. Maybe is there a plan to support it?
Sorry it's not currently supported, but I hope to add it soon.
Needed for #326
this is so useful for creating concurrency tokens...
Is default column value attribute planned in an upcoming version ?
how is going with this feature?
it seems someone tried to implement this feature? https://github.com/praeclarum/sqlite-net/blob/250a1929304d2f7ffefd58c49612a01c93efd41e/src/SQLite.Net/Attributes/DefaultAttribute.cs
Upvote
Up ?
You can try this: https://github.com/praeclarum/sqlite-net/issues/326#issuecomment-2003009012