first version that creates event table

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2024-12-23 01:31:53 +01:00
parent f97febad05
commit 0731613a07
4 changed files with 74 additions and 5 deletions
@@ -98,7 +98,7 @@ public class MariaDB implements Database {
@Override
public List<Appointment> list(Integer count, Integer offset) throws SQLException {
var list = new ArrayList<Appointment>();
var results = Query.of(SELECT_APPOINTMENTS).execute(connection);
var results = Query.of(SELECT_APPOINTMENTS).orderBy("start").execute(connection);
while (results.next()) {
var id = results.getInt("aid");
var title = results.getString("title");