I want to store a list of rss feed urls in an sqlite db. I’m using SQLAlchemy and was wondering how to store these. I can’t seem to find any documentation about lists, and was wondering if this was legal for a column:
Column(‘rss_feed_urls’, List)
Or is there an array type that I could use?
If you really must you could use the PickleType. But what you probably want is another table (which consists of a list of rows, right?). Just create a table to hold your RSS feeds:
Add new urls:
Retrieve your list of urls:
Find a specific feed by index:
I’d recommend SQLAlchemy’s Object Relational Tutorial.