Types used in queries and responses. See the docs.
FaunaDB time. See the docs.
For dates, regular
datetime.dateobjects are used.
Parameters: value – If a
datetime.datetimeis passed, it is converted to a string. Must include an offset.
Convert to an offset-aware datetime object. This is lossy as datetimes have microsecond rather than nanosecond precision.
Ref(id, cls=None, db=None)¶
FaunaDB ref. See the docs.
A simple wrapper around a string which can be extracted using
ref.value. Queries that require a Ref will not work if you just pass in a string.
__init__(id, cls=None, db=None)¶
x.__init__(…) initializes x; see help(type(x)) for signature
Gets the class part out of the Ref.
Gets the collection part out of the Ref.
Gets the database part out of the Ref.
Gets the id part out of the Ref.