@@ -230,11 +230,12 @@ def external(self):
230
230
def update1 (self , row ):
231
231
"""
232
232
update1 updates one existing entry in the table.
233
- Caution: In DataJoint the primary modes for data manipulation is to insert and delete
233
+ Caution: In DataJoint the primary modes for data manipulation is to `` insert`` and `` delete``
234
234
entire records since referential integrity works on the level of records, not fields.
235
235
Therefore, updates are reserved for corrective operations outside of main workflow.
236
236
Use UPDATE methods sparingly with full awareness of potential violations of assumptions.
237
- :param row: a dict containing the primary key values and the attributes to update.
237
+
238
+ :param row: a ``dict`` containing the primary key values and the attributes to update.
238
239
Setting an attribute value to None will reset it to the default value (if any)
239
240
The primary key attributes must always be provided.
240
241
Examples:
@@ -284,8 +285,7 @@ def insert(self, rows, replace=False, skip_duplicates=False, ignore_extra_fields
284
285
:param skip_duplicates: If True, silently skip duplicate inserts.
285
286
:param ignore_extra_fields: If False, fields that are not in the heading raise error.
286
287
:param allow_direct_insert: applies only in auto-populated tables.
287
- If False (default), insert are allowed only from inside
288
- the make callback.
288
+ If False (default), insert are allowed only from inside the make callback.
289
289
Example::
290
290
>>> relation.insert([
291
291
>>> dict(subject_id=7, species="mouse", date_of_birth="2014-09-01"),
@@ -596,7 +596,7 @@ def describe(self, context=None, printout=True):
596
596
def _update (self , attrname , value = None ):
597
597
"""
598
598
This is a deprecated function to be removed in datajoint 0.14.
599
- Use .update1 instead.
599
+ Use `` .update1`` instead.
600
600
601
601
Updates a field in one existing tuple. self must be restricted to exactly one entry.
602
602
In DataJoint the principal way of updating data is to delete and re-insert the
0 commit comments