FMPScheme.Builder

Description

The FMPScheme.Builder class is a builder for the FMPScheme class.

class Builder

Methods

Method Description

database(_:)

Save object of the database, with which FMPScheme will work, to variable.
func database(_ database: FMPDatabase) -> Builder

Parameters:

  • database. Database.

build() Build an instance of the FMPScheme class. It returns the object of the FMPScheme type.
func build() -> FMPScheme

Example

Build an instance of the FMPScheme class:

// Build an instance of the FMPDatabase class. For details see examples for FMPDatabase.Builder.
let database: FMPDatabase = fmp.database.build()
  
// Build an instance of the FMPScheme class
let scheme: FMPScheme = fmp.scheme
    .database(database) //  By default FMPDatabase(path: "", key: "")
    .build()

See also:

FMPWrapper Framework | Classes