From 00fd95526677d670d002ca81069636f0f74b91f7 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Wed, 28 Apr 2021 15:18:51 -0700 Subject: Code cleanup, fix database view paging and selection --- core/src/Model/TransactionsModel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/src/Model/TransactionsModel.cpp') diff --git a/core/src/Model/TransactionsModel.cpp b/core/src/Model/TransactionsModel.cpp index 6035528..968f0c0 100644 --- a/core/src/Model/TransactionsModel.cpp +++ b/core/src/Model/TransactionsModel.cpp @@ -9,9 +9,9 @@ namespace fs = std::filesystem; SalesTable::SalesTable(TransactionModel& db) // language=SQLite - : GetRowsStatement(db.GetSQLite(), R"""( -SELECT * FROM Sales WHERE rowid >= ? AND rowid < ? -)""") + : GetRowCountStatement(db.GetSQLite(), "SELECT Count(*) FROM Sales") + // language=SQLite + , GetRowsStatement(db.GetSQLite(), "SELECT * FROM Sales WHERE rowid >= ? AND rowid < ?") // language=SQLite // TODO , FilterRowsStatement(db.GetSQLite(), R"""( -- cgit v1.2.3-70-g09d2