Created
January 8, 2019 19:40
-
-
Save kreeger/87c6314394f3a67e1995028158e582b7 to your computer and use it in GitHub Desktop.
Example database deletion code for the blog post "Flapjack" on O'Reilly's engineering blog.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dataAccess.deleteDatabase(rebuild: true) { error in | |
if let error = error { | |
print(error.localizedDescription) | |
} | |
// It's almost as if it never happened. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment