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 can i set DatabaseErrorHandler? #839

Closed
Sejen27 opened this issue Mar 15, 2018 · 3 comments · Fixed by #980
Closed

How can i set DatabaseErrorHandler? #839

Sejen27 opened this issue Mar 15, 2018 · 3 comments · Fixed by #980
Assignees
Milestone

Comments

@Sejen27
Copy link

Sejen27 commented Mar 15, 2018

The OpenHelper which extends DatabaseOpenHelper can't set DatabaseErrorHandler

@greenrobot-team
Copy link
Collaborator

greenrobot-team commented Mar 27, 2018

The OpenHelper in DaoMaster is to get started easily only. You should write your own open helper extending from DatabaseOpenHelper to have full access. -ut

@Sejen27
Copy link
Author

Sejen27 commented Apr 9, 2018

Have you tried?Can the class which extends DatabaseOpenHelper access constructor below:

public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version,
DatabaseErrorHandler errorHandler)

@greenrobot-team
Copy link
Collaborator

3.3.0 has been released which makes this possible.
https://greenrobot.org/greendao/changelog/

diamondyhand added a commit to diamondyhand/green-DAO that referenced this issue Dec 15, 2023
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

Successfully merging a pull request may close this issue.

2 participants