Skip to content

Commit 4719bdb

Browse files
authored
Merge pull request #581 from TableProApp/feat/ios-pagination
feat: page-based pagination for iOS data browser
2 parents 156ad3f + 0b9543b commit 4719bdb

5 files changed

Lines changed: 211 additions & 207 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- iOS: connection groups and tags
1313
- iOS: Quick Connect Home Screen widget
14+
- iOS: page-based pagination for data browser
1415

1516
## [0.27.4] - 2026-04-05
1617

TableProMobile/TableProMobile/Helpers/SQLBuilder.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ enum SQLBuilder {
2424
.replacingOccurrences(of: "'", with: "''")
2525
}
2626

27+
static func buildCount(table: String, type: DatabaseType) -> String {
28+
let quoted = quoteIdentifier(table, for: type)
29+
return "SELECT COUNT(*) FROM \(quoted)"
30+
}
31+
2732
static func buildSelect(table: String, type: DatabaseType, limit: Int, offset: Int) -> String {
2833
let quoted = quoteIdentifier(table, for: type)
2934
return "SELECT * FROM \(quoted) LIMIT \(limit) OFFSET \(offset)"

0 commit comments

Comments
 (0)