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
1
vote
1 answer

DBflow does not work with existing Database when also using sqlCipher

I have been successfully using Dbflow for a while now. For the passed month my app has run fine with one sqlCipher database that is loaded with no existing values in its table and second database is a plain sqlite table that is loaded with existing…
D. Maul
  • 341
  • 2
  • 11
1
vote
0 answers

DBFlow crashes on model select. Too many files (2062)

When selecting a model using DBFlow (SQLite.select().from(Schedule.class).where(Schedule_Table.id.eq(scheduleId)).querySingle()) I get the following error: unable to open database file (code 2062) …
Bart Bergmans
  • 4,061
  • 3
  • 28
  • 56
1
vote
1 answer

Model object is not registered with a Database. Did you forget an annotation?

DBFlow Version:4.2.4 Bug or Feature Request:Bug Description:Have upgraded the library from 4.0.0-beta1 to 4.2.4.Included the library in my gradle file as follows:- dbFlow :…
williamj949
  • 11,166
  • 8
  • 37
  • 51
1
vote
1 answer

Android DBflow : define entity schema name

For my application, I'm using DBflow ORM. Nice and easy, a database is created and filled with my empty tables. My concern is, how do you define in DBflow, to which schema (database) an entity belongs? Example: dbo.[Dictionary] DBfLow @Table…
1
vote
1 answer

Error: Could not find method annotationProcessor() for arguments

I'm trying to import DBflow just as suggested in their readme. After modifying the project-level build.gradle file and trying to sync, I get the following error: Error:(27, 0) Could not find method annotationProcessor() for arguments…
Sam
  • 1,222
  • 1
  • 14
  • 45
1
vote
1 answer

how to set prefix to GeneratedDatabaseHolder.java class in dbflow in android studio 3

in android studio 2.3.3 when useing dbflow in a module you can add a prefix to GeneratedDatabaseHolder class like this apt { arguments { targetModuleName 'PreFixTitle' } } but in android studio 3 we cannot use apt right…
max
  • 5,963
  • 12
  • 49
  • 80
1
vote
2 answers

Updating model with DBFlow

I'm using the ORM DbFlow in my app, and i changed a column in a table class. To get the DBFlow internal classes rebuilt with the new column, I tried incrementing the database version but the ****_Table class that we use in the queries hasn't been…
Waylan
  • 91
  • 1
  • 2
  • 9
1
vote
1 answer

DBFlow - unable to delete data

I'm using DBFlow to manage my database in Android. I'm trying to delete a record based on a query. When I execute the following code, I don't get an error but the record still persists. Anything I'm doing obviously wrong ? SQLite.select() …
ArdenDev
  • 4,051
  • 5
  • 29
  • 50
1
vote
1 answer

calculate SUM for single column with DbFlow

I'm using latest version of DBFLOW library and i'm trying to calculate sum single column as countOfNewPosts this is my table: public class CafeWebNewPostInformation extends BaseModel { @PrimaryKey @Column public int id; @Column …
DolDurma
  • 15,753
  • 51
  • 198
  • 377
1
vote
1 answer

DbFlow Kotlin and List Type Converter

DBFlow Version: 4.0.4 Hi, I'm strugling with List Type converter with dbflow Android ORM and Kotlin. I have a data class defined like this: @Table(database = StopsDb::class) data class FavouriteStop( @PrimaryKey @Column var id: String = "", …
Androider
  • 435
  • 1
  • 9
  • 22
1
vote
1 answer

Dropping all old tables and recreating tables in dbflow

I want to write a migration script for dbflow (v4+).. I want to delete all the previous tables and then build everything from scratch. Currently only way I found we can do this is like: @Migration(version = 2, database = AppDatabase.class) public…
Ubaier Bhat
  • 854
  • 13
  • 33
1
vote
3 answers

DBflow make simple relation ship between 2 table

DBFlow for android doesn't have good document and after reading more information about how can I make simple relationship between two tables, I'm unable to do that. I have 2 table as: MainCategories and SubCategories In SubCategories I have…
tux-world
  • 2,680
  • 6
  • 24
  • 55
1
vote
1 answer

Android install DBFlow library with gradle

in my project i want to use DBFlow library as database ORM, after adding library in Gradle and sync i get this error: Error:Could not find com.github.Raizlabs.DBFlow:dbflow-core:4.0.0-beta7. Required by: MyApp:app:unspecified Search in…
tux-world
  • 2,680
  • 6
  • 24
  • 55
1
vote
1 answer

DBFlow issue regarding oneToMany and ForeignKey

I want to use the OneToMany relation in DBFlow but get the following error: error: cannot find symbol variable parentclass_parent_id The code looks (simplified) as follows: class ParentClass { @Column @PrimaryKey (autoincrement = true) private long…
1
vote
2 answers

Android DBFlow does not save objects

I have a database like this: @Database(name = QuestionDatabase.NAME, version = QuestionDatabase.VERSION) public class QuestionDatabase { public static final String NAME = "QuestionDatabase"; // we will add the .db extension public static…
ConductedClever
  • 4,175
  • 2
  • 35
  • 69