Giter VIP home page Giter VIP logo

sqlitemanager4ios's People

Contributors

aaronbaker avatar donmesserli avatar misato avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sqlitemanager4ios's Issues

Boolean required for execution of database query

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..

How to retrieve all the added users?

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?

Need to add database first

Thanks for library. But need to add database

pragma mark -

pragma mark - Copy DataBase Method

-(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");
}

}

floats are given int values

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 :(

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.