SuggestStoreBuilderProtocol
public protocol SuggestStoreBuilderProtocol : AnyObject
Builder for [SuggestStore]
Using a builder is preferred to calling the constructor directly since it’s harder to confuse the data_path and cache_path strings.
-
Declaration
Swift
func build() throws -> SuggestStore
-
Deprecated: this is no longer used by the suggest component.
Declaration
Swift
func cachePath(path: String) -> SuggestStoreBuilder
-
Declaration
Swift
func dataPath(path: String) -> SuggestStoreBuilder
-
Add an sqlite3 extension to load
library_name should be the name of the library without any extension, for example
libmozsqlite3
. entrypoint should be the entry point, for examplesqlite3_fts5_init
. Ifnull
(the default) entry point will be used (see https://sqlite.org/loadext.html for details).Declaration
Swift
func loadExtension(library: String, entryPoint: String?) -> SuggestStoreBuilder
-
Declaration
Swift
func remoteSettingsBucketName(bucketName: String) -> SuggestStoreBuilder
-
Declaration
Swift
func remoteSettingsServer(server: RemoteSettingsServer) -> SuggestStoreBuilder