emilsjolander / sprinkles

Sprinkles is a boiler-plate-reduction-library for dealing with databases in android applications
Apache License 2.0
772 stars 84 forks source link

Searching by Date #50

Closed f2prateek closed 10 years ago

f2prateek commented 10 years ago

Is sprinkles able to search by date?

Updating the sample app:

Query.many(Note.class,  "select Notes.*, " +
    "(select count(*) from NoteTagLinks where NoteTagLinks.note_id = Notes.id) as tag_count " +
    "from Notes where created_at = ?", new Date());

This never returns any entries.

emilsjolander commented 10 years ago

No, but this should definitely be added! Expect it to be possible in the next release ;)

emilsjolander commented 10 years ago

currently in master ;)

f2prateek commented 10 years ago

Awesome! On 22 Feb 2014 11:10, "Emil Sjölander" notifications@github.com wrote:

currently in master ;)

Reply to this email directly or view it on GitHubhttps://github.com/emilsjolander/sprinkles/issues/50#issuecomment-35809607 .

f2prateek commented 10 years ago

Will you be making snapshot releases? Trying to add submodules with gradle is kind of a pain

emilsjolander commented 10 years ago

I'm currently waiting for another issue to make a release, you could just install master to your local maven repo in the meantime

f2prateek commented 10 years ago

Hmm... './gradlew :library:install' fails. That would be the correct command right?

emilsjolander commented 10 years ago

Not sure tbh. I just made a release though so you should see the new version in maven central in the next couple of hours :+1: