Example #1
0
def insert_feed_result_entry(c, feed_result_id, feed_entry_id):
    execute(c, '''insert into feed_result_entry(feed_result_id, feed_entry_id)
                    values(?,?)''', (feed_result_id, feed_entry_id))
Example #2
0
def insert_feed_entry(c, feed_id, url, title, summary, publication, data):
    execute(
        c,
        '''insert into feed_entry(feed_id, url, title, summary, published, data)
                    values(?,?,?,?,?,?) ''',
        (feed_id, url, title, summary, publication, data))
Example #3
0
def insert_rss_feed_result(c, feed_result_id, request_etag):
    execute(c, '''insert into rss_feed_result(feed_result_id, request_etag)
                    values(?,?)''', (feed_result_id, request_etag))
Example #4
0
def insert_feed_result_unread(c, feed_result_id):
    execute(c, '''insert into feed_result_unread(feed_result_id)
                    values(?)''', (feed_result_id, ))
Example #5
0
def update_feed_result(cursor, feed_result_id, updated, json):
    return execute(cursor, '''update feed_result
                                 set updated = ?,
                                     data = ?
                               where id = ? ''', (updated, json, feed_result_id))
Example #6
0
def insert_feed_result(c, result_id, published, updated, data):
    execute(c, '''insert into feed_result(result_id, published, updated, data)
                    values(?,?,?,?)''', (result_id, published, updated, data))
Example #7
0
def insert_feed_result_location(c, feed_id, result_url):
    execute(c, '''insert into feed_result_location(feed_id, url)
                         values(?, ?)''', (feed_id, result_url))
Example #8
0
def insert_feed(c, url, title, description):
    execute(c, '''insert into feed (url, title, description)
                    values(?,?,?) ''', (url, title, description))
Example #9
0
def insert_feed_entry(c, feed_id, url, title, summary, publication, data):
    execute(c, '''insert into feed_entry(feed_id, url, title, summary, published, data)
                    values(?,?,?,?,?,?) ''', (feed_id, url, title, summary, publication, data))