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
8
votes
3 answers

Confused why these errors are happening, and what they mean?

I'm messing around with DBFlow in a android app trying to learn the framework a bit, and I've started getting errors, though I'm not sure they are related to DBFlow. Here is the error messages: 01-12 06:49:43.817 1294-1310/? E/BluetoothAdapter:…
Dustin
  • 567
  • 2
  • 5
  • 18
7
votes
1 answer

Using DBFlow, how to encrypt an already existing database?

I'm using DBFlow to handle databases in my project and I want to make the existing database encrypted. I know that I probably will have to drop the existing unencrypted database and create another encrypted. And I also know that I can use SQLCipher…
Natan
  • 1,867
  • 13
  • 24
7
votes
5 answers

DBFlow select where COLUMN in List?

I am trying to query my database for all models with primary keys in a list. This is my query (idsList is an ArrayList containing integers): new Select().from(PostModel.class) .where(Condition.column(PostModel$Table.ID).in(0, idsList)) …
A. Steenbergen
  • 3,360
  • 4
  • 34
  • 51
5
votes
2 answers

SQLCipher along with DBFlow

I have worked with DBFlow which is quite simple to play around database but i want to ask is there a good example to use SQLCipher with DBFlow I have Folowed this link for help Raizlabs/DBFlow But if any one can provide some simple example will be…
farrukh
  • 627
  • 4
  • 16
4
votes
1 answer

Update entire object with DBFlow

I am using DBFlow in my Android project and I would like to know if there is a way to update the entire object instead of specifying each column as shown below // Native SQL wrapper SQLite.update(Ant.class) .set(Ant_Table.type.eq("other")) …
ArdenDev
  • 4,051
  • 5
  • 29
  • 50
4
votes
1 answer

Duplicate "id" column with DBFlow tables and Stetho

I'm writing an application for Android using DBFlow as ORM library. So, here is one of my tables model: @Table(database = Database.class) public class Language extends BaseModel { @PrimaryKey(autoincrement = true) long id; @Column …
tehcpu
  • 934
  • 1
  • 11
  • 23
4
votes
5 answers

Can't find "*_Table" classes for DBFlow in Android (Studio)

I am trying to use the library DBFlow in Android. I have used it before and in the older version (2.2.1) it used a $Table.field. Now it seems to have another format where we reference a new class by "_Table". Example: int taxBracketCount =…
Yokich
  • 1,247
  • 1
  • 17
  • 31
3
votes
1 answer

Android DBFlow One to Many complete example

I am confused on how to declare Foreign Key in DBFlow. In getting started page for relationship for DBFlow (https://github.com/Raizlabs/DBFlow/blob/f2d90db39a4bf5ffcc0f22032ae20d5328b8d3c3/usage2/Relationships.md), it has example of Queen class but…
Sam
  • 1,826
  • 26
  • 58
3
votes
0 answers

Joining 3 tables using dbflow

I'm using dbflow in android app and have 3 tables (simplified for brevity). City int cityId (PK) String cityName Company int compId (PK) String compName int city (FK) Employee int empId (PK) String empName int city (FK) int company (FK) I want to…
user5820836
3
votes
2 answers

Ordering in DBFLow

I am trying to implement DBFlow in my Android Project. I have been able to create a table and add rows and columns to it. I have two columns, ID and Names. Now I want to retrieve the Names from the table and arrange it in descending order by ID. I…
Aakaash Jois
  • 288
  • 4
  • 17
3
votes
2 answers

Android Sqlite multi threading save data with DBFlow + Retrofit

I'm using DBFlow to save into the database and Retrofit to call my web service. My retrofit class is the same class as my Database table. But I have a problem when 2 threads or more are launched at the same time to save my data into the table. The…
John
  • 4,711
  • 9
  • 51
  • 101
3
votes
1 answer

Why does a DBFlow fed RecyclerView get updated in Marshmallow and fails to do so pre-M?

I'm trying to display a RecyclerView list fed from a DBFlow (SQLite) backend. Each item in the list represents an item that once selected will transition to a detail activity view. As with any CursorLoader, I'm expecting that each time changes…
2
votes
1 answer

How to make migrations with DBFlow?

I'm developing an Android application. For local database in the application I'm using DBFlow ORM library. When updating application, some new changes of the local database are not updated in the new version. I'm changing version of the AppDatabase…
MattCodes
  • 489
  • 8
  • 21
2
votes
1 answer

Getting "SQLiteException: no such column" in Android

I am using DBflow in my application right now and I wanted to modify a table by inserting a new column called categoryId. So I searched a little bit and I found out that I had to write a migration script to handle this modification in my table…
Marcos Guimaraes
  • 1,243
  • 4
  • 27
  • 50
2
votes
1 answer

DBFlow Android select most common value

I want to select most common name using dbFlow. In SQLite it would be: SELECT `Employee`.name FROM `Employee` GROUP BY `Employee`.name HAVING COUNT(*) = (SELECT MAX(cn) FROM (SELECT `Employee`.name, COUNT(*) AS cn FROM `Employee` …
kkk
  • 112
  • 1
  • 6
1
2 3 4 5 6 7