Merge pull request #114 from ghostwords/document-insert's-return
Document insert()'s return. Thanks @ghostwords
This commit is contained in:
@@ -60,6 +60,8 @@ class Table(object):
|
|||||||
|
|
||||||
data = dict(title='I am a banana!')
|
data = dict(title='I am a banana!')
|
||||||
table.insert(data)
|
table.insert(data)
|
||||||
|
|
||||||
|
Returns the inserted row's primary key.
|
||||||
"""
|
"""
|
||||||
self._check_dropped()
|
self._check_dropped()
|
||||||
if ensure:
|
if ensure:
|
||||||
|
|||||||
Reference in New Issue
Block a user