SuggestStoreBuilder

open class SuggestStoreBuilder:
    SuggestStoreBuilderProtocol

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

    required public init(unsafeFromRawPointer pointer: UnsafeMutableRawPointer)
  • Declaration

    Swift

    public convenience init()
  • Declaration

    Swift

    open func build() throws -> SuggestStore
  • Deprecated: this is no longer used by the suggest component.

    Declaration

    Swift

    open func cachePath(path: String) -> SuggestStoreBuilder
  • Declaration

    Swift

    open 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 example sqlite3_fts5_init. If null (the default) entry point will be used (see https://sqlite.org/loadext.html for details).

    Declaration

    Swift

    open func loadExtension(library: String, entryPoint: String?) -> SuggestStoreBuilder
  • Declaration

    Swift

    open func remoteSettingsBucketName(bucketName: String) -> SuggestStoreBuilder
  • Declaration

    Swift

    open func remoteSettingsServer(server: RemoteSettingsServer) -> SuggestStoreBuilder