parameters: (mapName)
docstring: ! Checks if vector map has an attribute table.
  
      \todo check layer
docstring_summary: ! Checks if vector map has an attribute table.
docstring_tokens: ! Checks if vector map has an attribute table .
function: def checkDbConnection(mapName):
      """! Checks if vector map has an attribute table.
  
      \todo check layer
      """
      ret = grass.vector_db(mapName)
      if not ret:
          grass.fatal(_("Vector map <%s> has no attribute table") % mapName)
function_tokens: def checkDbConnection ( mapName ) : ret = grass . vector_db ( mapName ) if not ret : grass . fatal ( _ ( "Vector map <%s> has no attribute table" ) % mapName )