class_docstr: The SQLStorageAdapter allows ChatterBot to store conversation
  data in any database supported by the SQL Alchemy ORM.
  
  All parameters are optional, by default a sqlite database is used.
  
  It will check if tables are present, if they are not, it will attempt
  to create the required tables.
  
  :keyword database_uri: eg: sqlite:///database_test.sqlite3',
      The database_uri can be specified to choose database driver.
  :type database_uri: str
class_docstr_tok: ["The","SQLStorageAdapter","allows","ChatterBot","to","store","conversation","data","in","any","database","supported","by","the","SQL","Alchemy","ORM",".","All","parameters","are","optional",",","by","default","a","sqlite","database","is","used",".","It","will","check","if","tables","are","present",",","if","they","are","not",",","it","will","attempt","to","create","the","required","tables",".",":","keyword","database_uri",":","eg",":","sqlite",":","\/\/\/database_test.sqlite3","'",",","The","database_uri","can","be","specified","to","choose","database","driver",".",":","type","database_uri",":","str"]
docstr: Creates a new statement matching the keyword arguments specified.
  Returns the created statement.
docstr_tok: ["Creates","a","new","statement","matching","the","keyword","arguments","specified",".","Returns","the","created","statement","."]
code: def create(self, **kwargs):
      """
      Creates a new statement matching the keyword arguments specified.
      Returns the created statement.
      """
      Statement = self.get_model("statement")
      Tag = self.get_model("tag")
  
      session = self.Session()
  
      tags = set(kwargs.pop("tags", []))
  
      if "search_text" not in kwargs:
          kwargs["search_text"] = self.tagger.get_text_index_string(
              kwargs["text"]
          )
  
      if "search_in_response_to" not in kwargs:
          in_response_to = kwargs.get("in_response_to")
          if in_response_to:
              kwargs[
                  "search_in_response_to"
              ] = self.tagger.get_text_index_string(in_response_to)
  
      statement = Statement(**kwargs)
  
      for tag_name in tags:
          tag = session.query(Tag).filter_by(name=tag_name).first()
  
          if not tag:
              # Create the tag
              tag = Tag(name=tag_name)
  
          statement.tags.append(tag)
  
      session.add(statement)
  
      session.flush()
  
      session.refresh(statement)
  
      statement_object = self.model_to_object(statement)
  
      self._session_finish(session)
  
      return statement_object
  
file_path: ChatterBot/chatterbot/storage/sql_storage.py
imports: from chatterbot.storage import StorageAdapter
label_desc: Use image node_id 8 for calling the SQLStorageAdapter obj's underlying member method code with example usage: obj.create() and returns: statement_object