original_docstring:  Iterate over the items to insert from an INSERT statement 
docstring: Iterate over the items to insert from an INSERT statement
docstring_tokens: Iterate over the items to insert from an INSERT statement
code: def iter_insert_items(tree):
      """ Iterate over the items to insert from an INSERT statement """
      if tree.list_values:
          keys = tree.attrs
          for values in tree.list_values:
              if len(keys) != len(values):
                  raise SyntaxError(
                      "Values '%s' do not match attributes " "'%s'" % (values, keys)
                  )
              yield dict(zip(keys, map(resolve, values)))
      elif tree.map_values:
          for item in tree.map_values:
              data = {}
              for (key, val) in item:
                  data[key] = resolve(val)
              yield data
      else:
          raise SyntaxError("No insert data found")
code_tokens: def iter_insert_items ( tree ) : if tree . list_values : keys = tree . attrs for values in tree . list_values : if len ( keys ) != len ( values ) : raise SyntaxError ( "Values '%s' do not match attributes " "'%s'" % ( values , keys ) ) yield dict ( zip ( keys , map ( resolve , values ) ) ) elif tree . map_values : for item in tree . map_values : data = { } for ( key , val ) in item : data [ key ] = resolve ( val ) yield data else : raise SyntaxError ( "No insert data found" )
short_docstring: Iterate over the items to insert from an INSERT statement
short_docstring_tokens: Iterate over the items to insert from an INSERT statement
comment: """ Iterate over the items to insert from an INSERT statement """