Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +---------------------+------------------+------+-----+---------+----------------+
- | Field | Type | Null | Key | Default | Extra |
- +---------------------+------------------+------+-----+---------+----------------+
- | id | int(11) unsigned | NO | PRI | NULL | auto_increment |
- ...
- | access_date | int(10) unsigned | NO | | 0 | |
- +---------------------+------------------+------+-----+---------+----------------+
- from sqlalchemy import Column, ForeignKey, Integer, String
- from sqlalchemy.ext.declarative import declarative_base
- Base = declarative_base()
- class logme(Base):
- id_ = Column(Integer, primary_key=True)
- ...
- date_access = Column(Integer, nullable=False, server_default=0)
- sqlalchemy.exc.ArgumentError: Argument 'arg' is expected to be one of type '<class 'str'>' or '<class 'sqlalchemy.sql.elements.ClauseElement'>' or '<class 'sqlalchemy.sql.elements.TextClause'>', got '<class 'int'>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement