Coder Social home page Coder Social logo

camembert's People

Contributors

omarbizreh avatar remirobert 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

camembert's Issues

Swift 2 compliant

Gents: Good job on this little frame-work. As you know, Swift 2 discontinued "reflect" and introduced "Mirror" class instead. I've changed your wonderful code and made it Swift-2 compliant. If you want, I can submit the code here.

Kind regards.

Problem with REAL type

File: Camembert.swift
Method: getObjectsWithQuery

line 97 should be (replace "sqlite3_column_int" with "sqlite3_column_double")
case SQLITE_FLOAT:
currentObject.setValue((Float(sqlite3_column_double(ptrRequest,
CInt(index))) as AnyObject), forKey: columName)

Framework

it will be awesome to make a framework with all dependencies, for simple integration. I tried, and i didn't get success to build one.

exc_bad_instruction code=exc_i386_invop

getObjectsWithQuery()

Everything is fine, I have created the Model and initialized database in AppDelegate but still it's giving me this error when I try to run a select query to fetch all records from my one and only table.

Please if someone can help me out here.

screen shot 2015-11-10 at 4 55 56 pm

NSDate Issue

Camembert seems to save an NSDate as a string, and when I retrieve the date from the database I expect it to be an NSDate back again, but it's not. How do I solve this problem?

Issue in getting class name

Hi, I faced an issue in this function:
it is always returning nil when project name includes spaces, for example if my project is called "My App" the return result will be nil. If I know Objective-C I would have helped fixing it ๐Ÿ‘

id camembertCreateObject(NSString *nameClass) {
    NSString *appName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"];
    NSString *classStringName = [NSString stringWithFormat:@"_TtC%lu%@%lu%@", (unsigned long)appName.length,
                                 appName, (unsigned long)nameClass.length, nameClass];

    Class customClass = NSClassFromString(classStringName);
    if (customClass == nil) {
        return nil;
    }
    return [[customClass alloc] init];
}

_initWithId(id: Int) returns data, with some offset

I have a model name Ingredient having name, brand, cost
When I _initWithId some ingredient the object that I get is of type "Ingredient" but it's properties are not returned in the correct way. i.e. when I access .name it returns empty, but when access .brand it returns the name and on .cost it returns the brand.. simple it does the following

.name = ""
.brand = .name
.cost = .brand
.cost = (Only God knows)

Does anybody understand this error? Can anyone please help me with it, I have tried to make a breakpoint in CamembertModel.swift and try to track down the error but no luck..

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.