DBOpenHelper
Helper class to manage SmartStore's database creation and version management.
Functions
Link copied to clipboard
Deletes all databases of given user.
Link copied to clipboard
Deletes all remaining authenticated databases.
Link copied to clipboard
Deletes the underlying database for the specified user account.
open fun deleteDatabase(ctx: Context, dbNamePrefix: String, account: UserAccount, communityId: String)
Deletes the underlying database for the specified user and community.
Link copied to clipboard
Link copied to clipboard
open fun getGlobalDatabasePrefixList(ctx: Context, account: UserAccount, communityId: String): List<String>
Returns a list of all prefixes for user databases.
Link copied to clipboard
Returns the DBOpenHelper instance associated with this user account.
open fun getOpenHelper(encryptionKey: String, ctx: Context, account: UserAccount, communityId: String): DBOpenHelper
Returns the DBOpenHelper instance associated with this user and community.
open fun getOpenHelper(encryptionKey: String, ctx: Context, dbNamePrefix: String, account: UserAccount, communityId: String): DBOpenHelper
Returns the DBOpenHelper instance for the given database name.
Link copied to clipboard
Link copied to clipboard
open fun getUserDatabasePrefixList(ctx: Context, account: UserAccount, communityId: String): List<String>
Returns a list of all prefixes for user databases.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Removes all files and folders in the given directory recursively as well as removes itself.
Link copied to clipboard
Link copied to clipboard
Determines if a smart store currently exists for the given account and/or community id.
open fun smartStoreExists(ctx: Context, dbNamePrefix: String, account: UserAccount, communityId: String): Boolean
Determines if a smart store currently exists for the given database name, account and/or community id.