finds.dev

martinrybak/SQLClient

Native Microsoft SQL Server client for iOS

View on GitHubHomepage ↗

★ 125CMITupdated Sep 2024

// the take

An Objective-C wrapper around FreeTDS for connecting iOS apps directly to SQL Server. Solves a real problem — there's no first-party driver for iOS — but it's essentially abandoned at this point, last touched in 2024 after years of silence.

The type mapping table in the README is genuinely thorough and honest about what doesn't work (money truncation, sql_variant, cursors). The NSNotificationCenter approach for errors and messages maps reasonably well to how FreeTDS itself surfaces them. Integration tests require a real SQL Server instance rather than mocks, which at least means the tests that exist are meaningful. CocoaPods distribution lowers the friction of bundling a precompiled FreeTDS binary.

Singleton pattern (`sharedInstance`) means you get one connection for your entire app — no connection pooling, no concurrent queries, and a global state mess if you ever need more than one database. The money type silently truncates the last two decimal digits, which is the kind of bug that costs someone real money before they notice. FreeTDS TDS version defaults to 7.1, so date/time types silently come back as strings unless you set an environment variable — that's a trap that will bite anyone on a modern SQL Server instance. The library is Objective-C only with no Swift-friendly API, no async/await support, and the open issues list has had 'PRs welcome' as the resolution strategy since at least 2014.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
125
Forks
53
Language
C
License
MIT
Last commit
21 Sep 2024

// nearby

If SQLClient isn't quite it.

All repos →