Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
word from this list then the statement will not be included in
the result set.
Defaults to [] (empty list)
:param persona_not_startswith: If the ``persona`` field of a
statement starts with the value specified by this parameter,
then the statement will not be returned in the result set.
Defaults to None
:param search_text_contains: If the ``search_text`` field of a
statement contains a word that is in the string provided to
this parameter, then the statement will be included in the
result set.
Defaults to None
"""
raise self.AdapterMethodNotImplementedError(
'The `filter` method is not implemented by this adapter.'
)
def remove(self, statement_text):
"""
Removes the statement that matches the input text.
Removes any responses from statements where the response text matches
the input text.
"""
raise self.AdapterMethodNotImplementedError(
'The `remove` method is not implemented by this adapter.'
)
def count(self):
"""
Return the number of entries in the database.
"""
raise self.AdapterMethodNotImplementedError(
'The `count` method is not implemented by this adapter.'
)
def create_many(self, statements):
"""
Creates multiple statement entries.
"""
raise self.AdapterMethodNotImplementedError(
'The `create_many` method is not implemented by this adapter.'
)
def drop(self):
"""
Drop the database attached to a given adapter.
"""
raise self.AdapterMethodNotImplementedError(
'The `drop` method is not implemented by this adapter.'
)
def create_many(self, statements):
"""
Creates multiple statement entries.
"""
raise self.AdapterMethodNotImplementedError(
'The `create_many` method is not implemented by this adapter.'
)
def update(self, statement):
"""
Modifies an entry in the database.
Creates an entry if one does not exist.
"""
raise self.AdapterMethodNotImplementedError(
'The `update` method is not implemented by this adapter.'
)
def drop(self):
"""
Drop the database attached to a given adapter.
"""
raise self.AdapterMethodNotImplementedError(
'The `drop` method is not implemented by this adapter.'
)
word from this list then the statement will not be included in
the result set.
Defaults to [] (empty list)
:param persona_not_startswith: If the ``persona`` field of a
statement starts with the value specified by this parameter,
then the statement will not be returned in the result set.
Defaults to None
:param search_text_contains: If the ``search_text`` field of a
statement contains a word that is in the string provided to
this parameter, then the statement will be included in the
result set.
Defaults to None
"""
raise self.AdapterMethodNotImplementedError(
'The `filter` method is not implemented by this adapter.'
)
def get_random(self):
"""
Returns a random statement from the database.
"""
raise self.AdapterMethodNotImplementedError(
'The `get_random` method is not implemented by this adapter.'
)