I am trying to use SQLAlchemy
with SublimeText2
and I do the following sequence
Then I do and then
so my code is
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class Transaction(Base):
__tablename__ = 'transaction'
# id = Column('id', Integer, primary_key=True)
id = Column('id', Integer, primary_key=True)
def main():
print 'Hello World!'
if __name__ == '__main__':
main()
When I try to build this as python build i see
line 10, in Transaction
id = Column('id', Integer, primary_key=True)
NameError: name 'Column' is not defined
[Finished in 0.2s with exit code 1]
This is because it does not imports the Column
, Integer
in the file
How can I fix this?