get entries sorted by date
This commit is contained in:
parent
bfe80c10e1
commit
62efba19b9
|
@ -18,15 +18,15 @@ pub trait Database {
|
|||
// Entry queries
|
||||
|
||||
fn entries_by_sheet(&self, sheet: &str) -> error::Result<Vec<Entry>> {
|
||||
self.entry_query("select * from entries where sheet=?1", &[&sheet])
|
||||
self.entry_query("select * from entries where sheet=?1 order by start asc", &[&sheet])
|
||||
}
|
||||
|
||||
fn entries_all_visible(&self) -> error::Result<Vec<Entry>> {
|
||||
self.entry_query("select * from entries where sheet not like '!_%' escape \"!\"", &[])
|
||||
self.entry_query("select * from entries where sheet not like '!_%' escape \"!\" order by sheet asc, start asc", &[])
|
||||
}
|
||||
|
||||
fn entries_full(&self) -> error::Result<Vec<Entry>> {
|
||||
self.entry_query("select * from entries", &[])
|
||||
self.entry_query("select * from entries order by sheet asc, start asc", &[])
|
||||
}
|
||||
|
||||
fn entry_insert(&mut self, at: Time, note: String) -> error::Result<()> {
|
||||
|
|
Loading…
Reference in New Issue