Created
June 8, 2019 05:10
-
-
Save identity2/d3a5e3fcce8b22df784d90f3bed9069a to your computer and use it in GitHub Desktop.
Database Accessor
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
class DatabaseAccessor { | |
// The instance of DatabaseAccessor | |
static let sharedInstance = DatabaseAccessor() | |
// Private initializer to avoid instancing by other class. | |
private init() {} | |
/* ... */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment