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
Copy file name to clipboardExpand all lines: docs/python-api.rst
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -824,6 +824,16 @@ If you pass in a dictionary with multiple values, both values will be used to in
824
824
})
825
825
})
826
826
827
+
The ``.lookup()`` method has an optional second argument which can be used to populate other columns in the table but only if the row does not exist yet. These columns will not be included in the unique index.
828
+
829
+
To create a species record with a note on when it was first seen, you can use this:
The first time this is called the record will be created for ``name="Palm"``. Any subsequent calls with that name will ignore the second argument, even if it includes different values.
836
+
827
837
.. _python_api_extracts:
828
838
829
839
Populating lookup tables automatically during insert/upsert
0 commit comments