You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yevgeniy Zakharov edited this page Aug 19, 2018
·
2 revisions
template<classO>
voidreplace(const O &o);
INSERT OR REPLACE query. Does the same that insert does but inserts primary key too. Use insert to create id and replace to update or insert with specified id. If table has no primary key insert and replace work the same way.
Parameters
class O is a mapped type you want to insert. Doesn't have to specified explicitly until you want to insert a subclass object.