class_docstr: Parses the results of a SHOW CREATE TABLE statement.
class_docstr_tok: ["Parses","the","results","of","a","SHOW","CREATE","TABLE","statement","."]
code: def _add_partition_option_word(self, directive):
      if directive == "PARTITION BY" or directive == "SUBPARTITION BY":
          regex = r"(?<!\S)(?P<directive>%s)%s" r"(?P<val>\w+.*)" % (
              re.escape(directive),
              self._optional_equals,
          )
      elif directive == "SUBPARTITIONS" or directive == "PARTITIONS":
          regex = r"(?<!\S)(?P<directive>%s)%s" r"(?P<val>\d+)" % (
              re.escape(directive),
              self._optional_equals,
          )
      else:
          regex = r"(?<!\S)(?P<directive>%s)(?!\S)" % (
              re.escape(directive),
          )
      self._pr_options.append(_pr_compile(regex))
  
imports: import re
  from .enumerated import ENUM
  from .enumerated import SET
  from .types import DATETIME
  from .types import TIME
  from .types import TIMESTAMP
  from ...None import log
  from ...None import types
  from ...None import util
label_desc: Use image node_id 14 for calling the MySQLTableDefinitionParser obj's underlying member method code with example usage: obj._add_partition_option_word(directive) without return types