CocoaPods trunk is moving to be read-only. Read more on the blog, there are 12 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Nov 2017 |
Maintained by Martin Rybak.
Native Microsoft SQL Server client for iOS. An Objective-C wrapper around the open-source FreeTDS library.
#import "SQLClient.h"
SQLClient* client = [SQLClient sharedInstance];
client.delegate = self;
[client connect:@"server:port" username:@"user" password:@"pass" database:@"db" completion:^(BOOL success) {
if (success)
{
[client execute:@"SELECT * FROM Users" completion:^(NSArray* results) {
for (NSArray* table in results)
for (NSDictionary* row in table)
for (NSString* column in row)
NSLog(@"%@=%@", column, row[column]);
[client disconnect];
}];
}
}];
//Required
- (void)error:(NSString*)error code:(int)code severity:(int)severity
{
NSLog(@"Error #%d: %@ (Severity %d)", code, error, severity);
}
Open the Xcode project inside the SQLClient folder.
SQLClient: A Native Microsoft SQL Server Library for iOS
FreeTDS: http://www.freetds.org
FreeTDS-iOS: https://github.com/patchhf/FreeTDS-iOS
FreeTDS example code in C: http://freetds.schemamania.org/userguide/samplecode.htm