misato / sqlitemanager4ios Goto Github PK
View Code? Open in Web Editor NEWSQLite Manager for iOS: an Obj-C wrapper for SQLite3
SQLite Manager for iOS: an Obj-C wrapper for SQLite3
Thanks for sharing!
Need to add these requirement.
Please consider adding cocoapods to the library.
in your db the return type is NSError, and this returns any error related to Opening DB issues only or if there is no data table exists, what in my case the query doesn't execute and i am unable to predict whether it will respond to me an error or not.. like fmdb the return type is BOOL, so it returns Yes/ No, how can i achieve this using your sqliteManager..
Thanks..
In my project, I find that SQLiteManager can't handle double value correctly.
Hello,
I tried exploring your library. Both add user & add table is working but I'm trying to retrieve all the added users. How can I code it?
Thanks for library. But need to add database
-(void)copyDatabaseToDocumentDirectoryWithName:(NSString *)name
{
NSString *path = [[NSBundle mainBundle]pathForResource:[[name lastPathComponent]stringByDeletingPathExtension] ofType:[name pathExtension]];
if ([[NSFileManager defaultManager] fileExistsAtPath:path])
{
NSArray *pathArray = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask,YES);
NSString *documentsDirectory = [pathArray objectAtIndex:0];
NSString *strFileDBPath = [documentsDirectory stringByAppendingPathComponent:name];
if ([[NSFileManager defaultManager] fileExistsAtPath:strFileDBPath])//File exists in document directory
{
NSLog(@"Database exists");
}
else //File doesnot exists in document directory
{
//Need to copy file in document directory
NSError *error = nil;
if ([[NSFileManager defaultManager] copyItemAtPath:path toPath:strFileDBPath error:&error])
{ //copied successfully
NSLog(@"Database copied");
}
else
{ //not copied
NSLog(@"Database not copied");
}
}
}
else
{
NSLog(@"Database file does not exists");
}
}
Lines 185-190
case SQLITE_FLOAT:
{
float value = sqlite3_column_int(statement, i); //using sqlite3_column_int() when setting a float...
[result setObject:[NSNumber numberWithFloat:value] forKey:columnName];
break;
}
All my floats were integers until I fixed it :(
because the db already closed,
reopen db, db will lost that last_inserted_row_id?
If so, getLastInsertRowID is not useful.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.