code: def quote(self, identifier, errors="strict"):
          
          if identifier is None:
              return None
  
          encodable = identifier.encode("utf-8", errors).decode("utf-8")
  
          nul_index = encodable.find("\x00")
  
          if nul_index >= 0:
              error = UnicodeEncodeError(
                  "NUL-terminated utf-8",
                  encodable,
                  nul_index,
                  nul_index + 1,
                  "NUL not allowed"
              )
              error_handler = codecs.lookup_error(errors)
              replacement, _ = error_handler(error)
              encodable = encodable.replace("\x00", replacement)
  
          return "\"" + encodable.replace("\"", "\"\"") + "\""
docs: https://stackoverflow.com/questions/6514274/how-do-you-escape-strings-for-sqlite-table-column-names-in-python
  
          :param identifier:
          :param errors:
          :return: