title: Quickly populate multiple arrays from SQLite pull in Swift
body: <p>I am trying to populate multiple empty arrays (up to 30) in my view controller from my SQLite DB.</p>
  
  <p>My SQLite data comes out as classes with individual properties. I can get them out by looping through the instances and then appending their properties values to the empty arrays. Is there a quicker way to do this?</p>
  
  <p>Otherwise I have to type out each property for each array. Also, I have multiple SQLlite tables I will pull from.</p>
  
  <pre><code>var Season = [String](), Sport = [String](), Team = [String](), Wins = [String]()
  
  if let AllTeams = try DB.prepare("TeamRecords") {
     for team in allTeams { 
        if team.teamUID == 2 &amp;&amp; team.Season &gt; "2010-11" {
           Season.append(Team.Season)
           Sport.append(Team.Sport)
           Team.append(Team.Team)
           Wins.append(Team.Wins)
         }
      }
  }
  </code></pre>