vals-productions/sqlighter

[db setReplaceDatabase:TRUE] is missing in iOS Demo project

Closed this issue · 4 comments

In AppDelegate you have:

[db setReplaceDatabase:TRUE];

This method is not available.

I think you mean setOverwriteDb

it is available.

What is the difference between setOverwriteDb and setReplaceDatabase?

Oh, I see. There's no difference. setOverwriteDbWithBoolean is required by the protocol, but setReplaceDatabase is synthesized by the declaration of the property. Everything is public in Obj C. I think I just followed compiler hint's prompt and choose the wrong one.