Skip to content

Commit fb96fa7

Browse files
authored
Add comment about upsert (dart-archive/gcloud#154)
1 parent 4dd5ac3 commit fb96fa7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkgs/gcloud/lib/src/db/db.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,9 @@ class DatastoreDB {
400400
/// direct lookups will see the effect but non-ancestor queries will see the
401401
/// change in an eventual consistent way.
402402
///
403+
/// The inserts are done as upserts unless the provided model does not have an
404+
/// id, in which case an autoId will be generated.
405+
///
403406
/// For transactions, please use `beginTransaction` and it's returned
404407
/// [Transaction] object.
405408
Future commit({List<Model>? inserts, List<Key>? deletes}) {

0 commit comments

Comments
 (0)