diff options
author | rtk0c <[email protected]> | 2021-04-28 15:18:51 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-04-28 15:18:51 -0700 |
commit | 00fd95526677d670d002ca81069636f0f74b91f7 (patch) | |
tree | a783f05be218a58c2b78175425f7576664c3f1a9 /core/src/Model/TransactionsModel.cpp | |
parent | b7d5b514e7bffd3149a99bc7f1424f8251876d85 (diff) |
Code cleanup, fix database view paging and selection
Diffstat (limited to 'core/src/Model/TransactionsModel.cpp')
-rw-r--r-- | core/src/Model/TransactionsModel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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"""( |