API reference
¶
class
mongo_thingy.
AsyncThingy
(
*
args
,
**
kwargs
)
[source]
¶
async
classmethod
create_index
(
keys
,
**
kwargs
)
[source]
¶
async
classmethod
create_indexes
(
)
[source]
¶
async
classmethod
find_one_and_replace
(
filter
,
replacement
,
*
args
,
**
kwargs
)
[source]
¶
async
classmethod
find_one_and_update
(
filter
,
update
,
*
args
,
**
kwargs
)
[source]
¶
async
save
(
force_insert
=
False
,
refresh
=
False
)
[source]
¶
class
mongo_thingy.
Thingy
(
*
args
,
**
kwargs
)
[source]
¶
classmethod
create_index
(
keys
,
**
kwargs
)
[source]
¶
classmethod
create_indexes
(
)
[source]
¶
classmethod
find_one_and_replace
(
filter
,
replacement
,
*
args
,
**
kwargs
)
[source]
¶
classmethod
find_one_and_update
(
filter
,
update
,
*
args
,
**
kwargs
)
[source]
¶
save
(
force_insert
=
False
,
refresh
=
False
)
[source]
¶
mongo_thingy.
connect
(
*
args
,
**
kwargs
)
[source]
¶
mongo_thingy.
create_indexes
(
)
[source]
¶
Create indexes registered on all
Thingy
Cursor
¶
class
mongo_thingy.cursor.
AsyncCursor
(
delegate
,
thingy_cls
=
None
,
view
=
None
)
[source]
¶
async
delete
(
)
[source]
¶
async
first
(
)
[source]
¶
next
=
<mongo_thingy.cursor._AsyncBindingProxy
object>
¶
to_list
=
<mongo_thingy.cursor._AsyncBindingProxy
object>
¶
class
mongo_thingy.cursor.
Cursor
(
delegate
,
thingy_cls
=
None
,
view
=
None
)
[source]
¶
delete
(
)
[source]
¶
first
(
)
[source]
¶
next
=
<mongo_thingy.cursor._BindingProxy
object>
¶
to_list
(
length
)
[source]
¶
Versioned
¶
class
mongo_thingy.versioned.
AsyncRevision
(
*
args
,
**
kwargs
)
[source]
¶
async
save
(
)
[source]
¶
class
mongo_thingy.versioned.
AsyncVersioned
[source]
¶
async
delete
(
author
=
None
)
[source]
¶
async
is_versioned
(
)
[source]
¶
async
revert
(
)
[source]
¶
async
save
(
author
=
None
,
**
kwargs
)
[source]
¶
class
mongo_thingy.versioned.
Revision
(
*
args
,
**
kwargs
)
[source]
¶
save
(
)
[source]
¶
class
mongo_thingy.versioned.
Versioned
[source]
¶
delete
(
author
=
None
)
[source]
¶
is_versioned
(
)
[source]
¶
revert
(
)
[source]
¶
property
revisions
¶
save
(
author
=
None
,
**
kwargs
)
[source]
¶
property
version
¶
property
versioned
¶