SmartStore
Smart store Provides a secure means for SalesforceMobileSDK Container-based applications to store objects in a persistent and searchable manner. Similar in some ways to CouchDB, SmartStore stores documents as JSON values. SmartStore is inspired by the Apple Newton OS Soup/Store model. The main challenge here is how to effectively store documents with dynamic fields, and still allow indexing and searching.
Constructors
Types
Link copied to clipboard
enum FtsExtension
Enum for fts extensions
Link copied to clipboard
Exception thrown by smart store
Properties
Functions
Link copied to clipboard
Start transaction NB: to avoid deadlock, caller should have synchronized(store.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Create (and commits) Note: Passed soupElt is modified (last modified date and soup entry id fields)
Create Note: Passed soupElt is modified (last modified date and soup entry id fields)
Link copied to clipboard
Create long_operations_status table
Link copied to clipboard
Create soup index map table to keep track of soups' index specs Create soup name map table to keep track of soup name to table name mappings Called when the database is first created
Link copied to clipboard
Delete soup elements selected by querySpec (and commits)
Delete soup elements selected by querySpec
Link copied to clipboard
Destroy all the soups in the smartstore
Link copied to clipboard
End transaction (commit or rollback)
Link copied to clipboard
Link copied to clipboard
Get SQLCipher FIPS status
Link copied to clipboard
Get SQLCipher provider version
Link copied to clipboard
Get SQLCipher compile options
Link copied to clipboard
Return db
Link copied to clipboard
Get database size
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get SQLCipher runtime settings
Link copied to clipboard
Return indexSpecs of soup
Link copied to clipboard
Link copied to clipboard
Get SQLCipher version
Link copied to clipboard
Return true if the given path is indexed on the given soup
Link copied to clipboard
Look for a soup element where fieldPath's value is fieldValue Return its soupEntryId Return -1 if not found Throw an exception if fieldName is not indexed Throw an exception if more than one soup element are found
Link copied to clipboard
Link copied to clipboard
Same as project but returns JSONObject.
Link copied to clipboard
Run a query given by its query Spec Returns results from selected page without deserializing any JSON
Link copied to clipboard
Link copied to clipboard
Register a soup.
Link copied to clipboard
Re-index all soup elements for passed indexPaths NB: only indexPath that have IndexSpec on them will be indexed
Link copied to clipboard
Finish long operations that were interrupted
Link copied to clipboard
If turned on, explain query plan is run before executing a query and stored in lastExplainQueryPlan and also get logged
Link copied to clipboard
Sets the ftsX to be used when creating the virtual table to support full_text queries NB: only used in tests
Link copied to clipboard
Set license key for SQLCipher Needed when using commercial or enterprise editions of SQLCipher Should be called before using SmartStore
Link copied to clipboard
Mark transaction as successful (next call to endTransaction will be a commit)
Link copied to clipboard
Update (and commits) Note: Passed soupElt is modified (last modified date and soup entry id fields)
open fun update(soupName: String, soupElt: JSONObject, soupEntryId: Long, handleTx: Boolean): JSONObject
Update Note: Passed soupElt is modified (last modified date and soup entry id fields)
Link copied to clipboard
open fun updateTableNameAndAddColumns(db: SQLiteDatabase, oldName: String, newName: String, columns: Array<String>)
Updates the given table with a new name and adds columns if any.
Link copied to clipboard
Upsert (and commits) expecting _soupEntryId in soupElt for updates
Upsert (and commits)
open fun upsert(soupName: String, soupElt: JSONObject, externalIdPath: String, handleTx: Boolean): JSONObject
Upsert