Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I override the cursor factory? #137

Open
vinaysshenoy opened this issue Dec 3, 2020 · 2 comments
Open

How do I override the cursor factory? #137

vinaysshenoy opened this issue Dec 3, 2020 · 2 comments

Comments

@vinaysshenoy
Copy link

The RequerySQLiteOpenHelperFactory does not seem to have an option for me to provide my own cursor factory. Is there a recommended way to do this? So far, it seems like I would have to make a copy of io.requery.android.database.sqlite.SQLiteOpenHelper and modify it to create an instance of io.requery.android.database.sqlite.SQLiteDatabase with my custom cursor factory. I'd rather not do that if there was a way for me to override it manually.

What I am specifically looking to do is create cursors with larger windows, so if there is a way for me to do that without needing to override the cursot factory, that would be great as well.

@npurushe
Copy link
Contributor

npurushe commented Jan 20, 2021

Does SQLiteDatabase.queryWithFactory not work for your use case ?

@vinaysshenoy
Copy link
Author

We currently use the Android Room database library which generates code from interfaces. We don't use the SQLiteDatabase classes directly in the codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants