Skip to content

Object '""' does not exist or not authorized. #11364

Discussion options

You must be logged in to vote

hi -

if you dont want quotes, use all lowercase names:

class Post(Base):
    """Class that represents a Post"""

    __tablename__: str = "post"
    id = Column(Integer, primary_key=True)
    title = Column(String(100))
    content = Column(String(100))

if you really want those attributes to be UPPERCASE, you can assign a separate name:

class Post(Base):
    """Class that represents a Post"""

    __tablename__: str = "post"
    ID = Column("id", Integer, primary_key=True)
    TITLE = Column("title", String(100))
    CONTENT = Column("content", String(100))

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@BFASRachelS
Comment options

@zzzeek
Comment options

Answer selected by BFASRachelS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants