cqle doc: deprecated TimeUUID.from_datetime
This commit is contained in:
@@ -557,7 +557,12 @@ class TimeUUID(UUID):
|
||||
|
||||
:param dt: datetime
|
||||
:type dt: datetime
|
||||
:return:
|
||||
:return: uuid1
|
||||
|
||||
.. deprecated:: 2.6.0
|
||||
|
||||
Use :func:`cassandra.util.uuid_from_time`
|
||||
|
||||
"""
|
||||
msg = "cqlengine.columns.TimeUUID.from_datetime is deprecated. Use cassandra.util.uuid_from_time instead."
|
||||
warnings.warn(msg, DeprecationWarning)
|
||||
|
||||
@@ -78,6 +78,8 @@ Columns of all types are initialized by passing :class:`.Column` attributes to t
|
||||
|
||||
.. autoclass:: TimeUUID(**kwargs)
|
||||
|
||||
.. automethod:: from_datetime
|
||||
|
||||
.. autoclass:: TinyInt(**kwargs)
|
||||
|
||||
.. autoclass:: UserDefinedType
|
||||
|
||||
@@ -150,3 +150,6 @@ After::
|
||||
__discriminator_value__ = 'dog'
|
||||
|
||||
|
||||
TimeUUID.from_datetime
|
||||
----------------------
|
||||
This function is deprecated in favor of the core utility function :func:`~.uuid_from_time`.
|
||||
|
||||
Reference in New Issue
Block a user