title: How to list table column to array in sqlalchemy
body: <p>I am new to sqlalchemy and am trying to output a list of my columns to an array in python using flask. </p>
  
  <p>Here is my table:</p>
  
  <pre><code>class DeviceTable(db.Model):
  id = db.Column(db.Integer, primary_key=True)
  name = db.Column(db.String(120), unique=True, nullable=False)
  modes = db.Column(db.String(120), unique=False, nullable=False)
  MN1 = db.Column(db.String(120), unique=False, nullable=True)
  MN2 = db.Column(db.String(120), unique=False, nullable=True)
  MN3 = db.Column(db.String(120), unique=False, nullable=True)
  MN4 = db.Column(db.String(120), unique=False, nullable=True)
  MN5 = db.Column(db.String(120), unique=False, nullable=True)
  MN6 = db.Column(db.String(120), unique=False, nullable=True)
  MN7 = db.Column(db.String(120), unique=False, nullable=True)
  MN8 = db.Column(db.String(120), unique=False, nullable=True)
  MN9 = db.Column(db.String(120), unique=False, nullable=True)
  MN10 = db.Column(db.String(120), unique=False, nullable=True)
  B1 = db.Column(db.String(120), unique=False, nullable=True)
  B2 = db.Column(db.String(120), unique=False, nullable=True)
  B3 = db.Column(db.String(120), unique=False, nullable=True)
  B4 = db.Column(db.String(120), unique=False, nullable=True)
  B5 = db.Column(db.String(120), unique=False, nullable=True)
  B6 = db.Column(db.String(120), unique=False, nullable=True)
  B7 = db.Column(db.String(120), unique=False, nullable=True)
  B8 = db.Column(db.String(120), unique=False, nullable=True)
  B9 = db.Column(db.String(120), unique=False, nullable=True)
  B10 = db.Column(db.String(120), unique=False, nullable=True)
  </code></pre>
  
  <p>I want to output all of the 'name' objects to an array so I can use it to populate a listbox.</p>