question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to fetch only one column in sugar orm

See original GitHub issue

Hello, i create a model class person, how can i fetch only the lastName of all users

public Person extends SugarRecord<Person>{ private String lastname; private String firstname; private String middleName; private String faculty; private int age;

public Person(String last, String first, String middleName, int age, String faculty){
    this.lastname = last;
    this.firstname = first;
    this.age = age;
    this.middleName = middleName;
    this.faculty = faculty;
}
public Person(){    
}

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
EE-GSlomincommented, Jun 15, 2017

Any update on this?

0reactions
Stevemoretzcommented, Jan 8, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to retrieve a single column data from a Android sugar ...
Another example that returns a List of values in the column. Use as such: String rawQuery = ("SELECT feed_key FROM team_feed_key WHERE ...
Read more >
Clean Persistence with Sugar ORM - CodePath Cliffnotes
Select youngAuthorQuery = Select.from(Author.class) .where(Condition ...
Read more >
Sugar ORM - Insanely easy way to work with Android database.
Select.from(TestRecord.class) .where(Condition ...
Read more >
Android SQLite Database Tutorial with Sugar ORM
First fetch the Note from the database. I'm finding it based on the title, but ideally you'd do it using an ID of...
Read more >
A Comparison of Android ORMs | Vertabelo Database Modeler
ActiveAndroid is the only ORM lacking a genuine builder for select queries. This time around, Sugar ORM has a reasonable and quite concise ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found