Questions tagged [dbflow]

A robust, powerful, and very simple ORM android database library with annotation processing.

About

A robust, powerful, and very simple ORM android database library with annotation processing.

The library is built on speed, performance, and approachability. It not only eliminates most boiler-plate code for dealing with databases, but also provides a powerful and simple API to manage interactions.

Links

92 questions
0
votes
1 answer

Get SQL insert statement string from model?

Pretty simple question, assuming I've got the model for a row in a table, I'd like to get the insert statement necessary to create that row. List updatedRows = new Select() .from(MyDatabase.getMyModels().get(table)) …
Josue Espinosa
  • 5,009
  • 16
  • 47
  • 81
0
votes
1 answer

DBFlow Transactions Overhaul - need to rewrite my code

As with the new version of Raizlabs DBFlow the way of managing databases has been changed. Right now, after hours of reading/learing I'm pressed to the wall. I need to rewrite two methods from old version of DBFlow (3.0.0-beta5) to new…
TheD3luxed
  • 178
  • 1
  • 8
0
votes
1 answer

DBFlow column types will not respect default values

I am currently doing a migration of version in DBFlow to version 3.0.0-beta5 to 3.1.1 and I am having this problem right now: Error:10:40:59.403 [ERROR] [system.err] warning: ========== 10:40:59.403 [ERROR] [system.err] class…
Augusto Gonzalez
  • 198
  • 3
  • 16
0
votes
1 answer

DBFlow: How to migrate tables from an other database?

I have some columns of a table in an "old" database that I want to migrate to a new one, using DBFlow. DBFlow provides the @Migration annotation for databases, but it seems it only works to migragte tables in the same database. What is the best…
Chriss
  • 5,157
  • 7
  • 41
  • 75
0
votes
3 answers

Android create simple OneToMany Relation with DBFlow

i have simple two models and i'm trying to create simple OneToMany between them, as far as i'm newbie to use this library i can't use library documentation, my main model is: @Table(database = AppDatabase.class) public class ModelChannelPosts…
tux-world
  • 2,680
  • 6
  • 24
  • 55
0
votes
1 answer

DatabaseWrapper cannot be converted to SQLiteDatabase

I am trying to get writable database using DBFlow using the FlowManager like this FlowManager.getDatabase(SampleDatabase.NAME).getWritableDatabase() using DBFlow version "4.0.0-beta1" but i get an error DatabaseWrapper cannot be converted to…
christoandrew
  • 437
  • 4
  • 17
0
votes
3 answers

DBFlow Error in Android.. Error:(8, 39) error: cannot find symbol class Class_Table

I have been using DBFlow as the ORM for the SQLite Databases in Android but Somehow I'm not able to run again after the program run once. It says that error: cannot find symbol class Class_table. What is the problem and how to overcome it?
0
votes
1 answer

Upgrade database in DBFlow Android

We released a version of the application in Play Store which implemented DBFlow, now we wants to update the app into next version, in that we should add two new tables to the existing database using DBFlow. Can anyone help me on this?
Satheeshkumar
  • 452
  • 4
  • 13
0
votes
1 answer

How to get a particular column list in DBFlow Android

Hi i am trying to fetch one single column list in DbFlow I get all match details when i use this public List getMatchDetails() { return SQLite.select() .from(Match.class) .queryList(); } But I…
Nivedh
  • 971
  • 1
  • 8
  • 19
0
votes
1 answer

DBFlow equivalent to SQL CONTAINS

How to execute a query with CONTAINS in DBFlow without writing a raw query? I tried public void searchTerm(String term) { SQLite().select() .from(MyModel.class) .where(MyModel_table.name.like(term)) …
rexxar
  • 1,671
  • 1
  • 21
  • 27
0
votes
1 answer

Is DBflow Possible by Between Casting?

There are 1~20 numbers in List. And i want to take 1~10 numbers. but below code can't take 1~10 numbers. only 1 and 10.. how do i do? startNum = 1; endNum = 10; public List findbyBetweenStartEnd(String startNum, String endNum) { return…
HealthyRyu
  • 107
  • 1
  • 9
  • 47
0
votes
1 answer

Android DBFlow and CursorLoader

Anyone knows how to use cursorLoader with DBFlow ? I seen this issue but this is not added to DBFlow. Thanks.
John
  • 4,711
  • 9
  • 51
  • 101
0
votes
2 answers

Android, DBFlow fill object by selecting statement

this is my db: @Database(name = GamersDatabase.NAME, version = GamersDatabase.version) public class GamersDatabase { public static final String NAME = "and_roid"; public static final int version = 1; } and this is my…
men human
  • 1
  • 2
0
votes
0 answers

Android ORMs: Can't recognize method in annotations

In my Android app I'm trying to implement ORM for SQLite database for existing db. I've tried to implement activeandroid and DBFlow, but Android studio shows error that it can't recognize method. Here's how it shows when I try to use DBFlow ORM and…
lightsaber
  • 1,481
  • 18
  • 37
-1
votes
1 answer

how to update database by sqlite file downloaded from internet at runtime?

I have sqlite file in assets and dbflow read it correctly but at runtime I sometimes need to download a new updated sqlite file from internet and place it in certain folder in sdcard so how to update dbflow database by this sqlite file in sdcard to…
adel omar
  • 79
  • 1
  • 7