(self, id)
| 22 | return Thread(*self.db.execute("SELECT * FROM threads WHERE uri=?", (uri,)).fetchone()) |
| 23 | |
| 24 | def get(self, id): |
| 25 | return Thread(*self.db.execute("SELECT * FROM threads WHERE id=?", (id,)).fetchone()) |
| 26 | |
| 27 | def new(self, uri, title): |
| 28 | self.db.execute("INSERT INTO threads (uri, title) VALUES (?, ?)", (uri, title)) |