parameters: (self, table, field_defs, pkey)
return_statement: return True
docstring: Creates ordinary table
                          'fields' is array containing field definitions
                          'pkey' is the primary key name
docstring_summary: Creates ordinary table
                          'fields' is array containing field definitions
                          'pkey' is the primary key name
docstring_tokens: Creates ordinary table fields is array containing field definitions pkey is the primary key name
function: def createTable(self, table, field_defs, pkey):
          """Creates ordinary table
                          'fields' is array containing field definitions
                          'pkey' is the primary key name
          """
          if len(field_defs) == 0:
              return False
  
          sql = "CREATE TABLE %s (" % self.quoteId(table)
          sql += u", ".join(field_defs)
          if pkey is not None and pkey != "":
              sql += u", PRIMARY KEY (%s)" % self.quoteId(pkey)
          sql += ")"
  
          self._execute_and_commit(sql)
          return True
function_tokens: def createTable ( self , table , field_defs , pkey ) : if len ( field_defs ) == 0 : return False sql = "CREATE TABLE %s (" % self . quoteId ( table ) sql += u", " . join ( field_defs ) if pkey is not None and pkey != "" : sql += u", PRIMARY KEY (%s)" % self . quoteId ( pkey ) sql += ")" self . _execute_and_commit ( sql ) return True