Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- iOS: connection groups and tags
- iOS: Quick Connect Home Screen widget
- iOS: page-based pagination for data browser

## [0.27.4] - 2026-04-05

Expand Down
5 changes: 5 additions & 0 deletions TableProMobile/TableProMobile/Helpers/SQLBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ enum SQLBuilder {
.replacingOccurrences(of: "'", with: "''")
}

static func buildCount(table: String, type: DatabaseType) -> String {
let quoted = quoteIdentifier(table, for: type)
return "SELECT COUNT(*) FROM \(quoted)"
}

static func buildSelect(table: String, type: DatabaseType, limit: Int, offset: Int) -> String {
let quoted = quoteIdentifier(table, for: type)
return "SELECT * FROM \(quoted) LIMIT \(limit) OFFSET \(offset)"
Expand Down
Loading
Loading