Code Monkey home page Code Monkey logo

bgdb_oc's People

Contributors

huangzhibiao 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

Watchers

 avatar  avatar  avatar  avatar  avatar

bgdb_oc's Issues

BGSqlite有很多方法是崩溃的

通过uniqueKey获取对象中的uniqueKeyVlaue时一直报错,比如BGSqlite的509和518行代码,id uniqueKeyVlaue = [self valueForKey:uniqueKey],应该改为id uniqueKeyVlaue = [object valueForKey:uniqueKey]吧,self代表BGSqlite,不是要存储的对象,怎么可能取到相应的值

insert another sqlite table

I persisted some objects in a table called Categories and I didn't get any issue there so far but now I want to persist some objects in another table called Channels but I get this error :
screen shot 2017-05-13 at 4 33 55 am

this is my code :

 NSArray *channelData = [channelsResults valueForKey:@"data"];
        
        for (id details in channelData ) {
            
            [Channels setDebug:YES];
    
            Channels *channelsData = [Channels new];

            channelsData.channelID = [details valueForKey:@"id"];
            channelsData.name = [details valueForKey:@"name"];
            channelsData.picture = [details valueForKey:@"picture"];
            channelsData.categoryID = [details valueForKey:@"category_id"];
            channelsData.desc = [details valueForKey:@"description"];
            [channelData saveOrUpdate];
        }
        

0.239657保存不上

请问为什么保存不上0.239657这样的CGFloat,保留的结果只为0;
1.239657保留的结果只为1;
小数点后面的能保留吗?

bg_saveOrUpdate发放有问题

这个方法不会触发update,只会insert。bg_saveOrUpdate方法调用的是BigSqlite的+(BOOL)insertOrUpdate:(id)object ignoredKeys:(NSArray* const)ignoredKeys方法,不是+(BOOL)insertOrUpdate:(id)object,在+(BOOL)insertOrUpdate:(id)object ignoredKeys:(NSArray* const)ignoredKeys方法的511、513和519行代码,没有判断uniqueKeyVlaue是否是字符串,导致查询不出来已有的数据

is there a way to delete a single object from database?

this is my table :
screen shot 2017-05-19 at 7 04 05 pm

I want to delete the object in "favoriteID" not the whole row

this is my code:

   NSString *cond = [NSString stringWithFormat:@"where favoriteID = '%@'",self.subchannelModel.subID];
    [Subchannels deleteWhere:cond];

when I use this code it will delete the whole row!

saveOrUpdate does not delete removed object!

saveOrUpdate does not delete removed object!

i'm persisting objects from my web service into the database, for example I removed an object from the backend ,when I refresh my app it does not remove that object

 for (id details in results ) {
           
           [Categories setDebug:YES];
            
            Categories *categoriesData = [Categories new];
            categoriesData.categoryID = [details valueForKey:@"id"];
            categoriesData.picture = [details valueForKey:@"picture"];
            categoriesData.display_name = [details valueForKey:@"display_name"];
            categoriesData.name = [details valueForKey:@"name"];
            
            [categoriesData saveOrUpdate];
        }
        
        NSLog(@"%@",[Categories findAll]);

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.