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
{{ message }}
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
Currently,
Table.insert()
is an alias ofTable.save()
which does an upsert.The API should be changed to this:
Table.insert(data)
should fail if the primary key already exists.db.table.create().set(data).save({insert: true})
Table.upsert(data)
alias forTable.save(data)
but disallowupdate
andinsert
optionsTable.create(data)
factory method to create a new row to be saved/persisted laterrow.save(opts)
save the changes to this row and do a recursive upsert of nested tablesopts.insert
: error if primary key already existsopts.update
: error if primary key doesn't existrow.update(data)
row.set(data).save({update: true})
The text was updated successfully, but these errors were encountered: