Questions tagged [storio]

StoreIO is a Java API that replaces the SQLiteDatabase and ContentResolver API:s.

StoreIO is a API that replaces the and ContentResolver API:s.

For more information, see the GitHub page.

10 questions
2
votes
1 answer

Resolver for inner-nested object in storio

tell me please, how write resolver for inner-nested object in storio. example "book": {"id": 1, "title": "The Chronicles of Amber", "author": "Roger Zelazny", "reader": {"id": 1, "name": "Jack"}}
kelebro63
  • 297
  • 2
  • 11
1
vote
0 answers

Using StorIO with AndroidX and Jetifier

We are converting one of our project to AndroidX and the jetifier seems to choke on the @NonNull annotation in the generated resolver (e.g., mapFromCursor(@NonNull ...) When compiling we have Cannot find symbol on the NonNull symbol. This is…
Benjamin
  • 7,055
  • 6
  • 40
  • 60
1
vote
1 answer

How to ensure that a column won't get overriden by a null value?

Let's say I have a simple user table with the following columns: name, id, token. I get these values from a server so whenever I get them I want to update it inside my local database. Sometimes token is given to me and in those cases update token.…
Sree
  • 2,727
  • 3
  • 29
  • 47
1
vote
1 answer

StorIO observeChangesInTable, can i get updated rows/items with it?

StorIOSQLite has interesting method observeChangesInTable(). And When I saw it I thought that it would observe changes in given table and return list of updated items. But it just returns updated table name. Why would I need an updated table name? I…
Defuera
  • 5,356
  • 3
  • 32
  • 38
1
vote
1 answer

What are the various column types you can have in StorIO?

I know for sure that String & Long is ok because they are part of the sample app. What else?
Sree
  • 2,727
  • 3
  • 29
  • 47
0
votes
1 answer

Save new object to table (StorIO)

I want save all objects ReportDB as new row in DB App.get(context) .getStorIO() .put() .object(new ReportDB(keyStore.getKeyCategoryId(), keyStore.getKeyShelfId())) .prepare() .asRxObservable().subscribe(putResult ->…
Zahar
  • 101
  • 1
  • 1
0
votes
1 answer

Keeping a subscription open in a singletion

I have a singleton that keeps track of the logged in user. I have a getInstance() method that fetches the user from the database if instance is null. My question is if it is ok to keep the subscription open so that any updates to the database will…
Sree
  • 2,727
  • 3
  • 29
  • 47
0
votes
2 answers

Create new databases on runtime in app

I have a requirement to create a new database for each user in app, and to have multiple databases that change on user switching. Does any of the existing ORM's like GreenDAO, Storio, DbFlow, Realm or similar orm/libraries for Android support this…
ddog
  • 670
  • 1
  • 10
  • 25
0
votes
1 answer

Best method to get android contact infos (addressbook) with StorIO

Usage for: I want to show all contacts in on tab and in the other tab I want to show all groups. The user could select multiple contacts or groups. Question: Which is the best method to get the contact infos from the Android addressbook? I want to…
Hugo Maier
  • 11
  • 1
0
votes
1 answer

Best approach when working with existing SQLite database in StorIO

Was just wondering if there is a suggested approach when working with a existing data with StorIO? I will like to ship my app with a lot of existing data. Should I copy my .db from assets to db folder on first launch or is there anything better I…
PiXeL16
  • 808
  • 8
  • 5