Why not create a strange table with the only column? Let's say we want to store the adverbs that we have seen in texts. We have imported all necessary modules for declarative mapping in advance. Unfortunately, the lines of the code got mixed. Put them in the correct order.
SQL Alchemy mappings
A strange table!
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
class Adverbs(Base):
__tablename__ = 'adverbs'
Base = declarative_base()
word = Column(String(30), primary_key=True)
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.