Column

public class Column : Field, IndexColumn

The Column class is used to represent a single column in an SQL table in Swift. A combination of columns are used to construct a Table class which matches a specific table in an SQL database. The Column class details the column name, the table the column belongs to, any SQL keywords which apply to the column and the data type of the column.

Usage Example:

In this example, a person Table class, containing three instances of the Column class, is defined.

 public class PersonTable : Table {
     let tableName = "personTable"
     let person_id = Column("person_id", Int32.self, autoIncrement: true, primaryKey: true, notNull: true, unique: true)
     let name = Column("name", String.self, notNull: true)
     let monthlyPay = Column("monthlyPay", Int32.self)
 }

Column Parameters

  • The name of the column.

    Declaration

    Swift

    public let name: String
  • The alias of the column.

    Declaration

    Swift

    public var alias: String?
  • The type of the column.

    Declaration

    Swift

    public let type: SQLDataType.Type?
  • The length of the column values according to the type.

    Declaration

    Swift

    public let length: Int?
  • An indication whether the column is the primary key of the table.

    Declaration

    Swift

    public let isPrimaryKey: Bool
  • An indication whether the column is not nullable.

    Declaration

    Swift

    public let isNotNullable: Bool
  • An indication whether the column values have to be unique.

    Declaration

    Swift

    public let isUnique: Bool
  • The default value of the column.

    Declaration

    Swift

    public let defaultValue: Any?
  • Property denoting whether default value is NULL If set to true a nil value for the defaultValue property will be interpreted as NULL

    Declaration

    Swift

    public let nullDefaultValue: Bool
  • An indication whether the column autoincrements.

    Declaration

    Swift

    public let autoIncrement: Bool
  • A boolean expression constraint, which values inserted into the column will be checked against.

    Declaration

    Swift

    public let checkExpression: String?
  • The collation rule for the column.

    Declaration

    Swift

    public let collate: String?
  • The table to which the column belongs.

    Declaration

    Swift

    public var table: Table { get }

Column Initializer

  • The initializer for the Column class. This creates an instance of Column using the provided parameters. Name must be provided, but all other fields will default to either nil or false if not given.

    Usage Example:

    In this example, an instance of the Column class is created to match the person_id column of an SQL table. To represent this a Column is initialised with name set to “person_id”, type set as Int32.self (self is required to pass Int32 as the class) and primaryKey properties set to true.

    let person_id = Column("person_id", Int32.self, autoIncrement: true, primaryKey: true, notNull: true, unique: true)
    

    Declaration

    Swift

    public init(_ name: String, _ type: SQLDataType.Type? = nil, length: Int? = nil, autoIncrement: Bool = false, primaryKey: Bool = false, notNull: Bool = false, unique: Bool = false, defaultValue: Any? = nil, nullDefaultValue: Bool = false, check: String? = nil, collate: String? = nil)

    Parameters

    name

    The name of the column.

    type

    The type of the column. Defaults to nil.

    length

    The length of the column values according to the type. Defaults to nil.

    autoIncrement

    An indication whether the column autoincrements. Defaults to false.

    primaryKey

    An indication whether the column is the primary key of the table. Defaults to false.

    notNull

    An indication whether the column is not nullable. Defaults to false.

    unique

    An indication whether the column values have to be unique. Defaults to false.

    defaultValue

    The default value of the column. Defaults to nil.

    nullDefaultValue

    Property denoting whether default value is NULL. Defaults to false.

    check

    The expression to check for values inserted into the column. Defaults to nil.

    collate

    The collation rule for the column. Defaults to nil.

Column Decription Functions

  • Function to build a String representation for referencing a Column instance. A QueryBuilder is used to handle variances between the various database engines and produce a correct SQL description. This function is required to conform to the Buildable protocol.

    Usage Example:

    In this example, QueryBuilder and a PersonTable (as defined at the top of this class) instances are initialized. The build function is then called to produce a String description and the results are printed.

    let queryBuilder = QueryBuilder()
    let personTable = PersonTable()
    let description = try personTable.name.build(queryBuilder: queryBuilder)
    print(description)
    // Prints personTable.name
    

    Throws

    QueryError.syntaxError if query build fails.

    Declaration

    Swift

    public func build(queryBuilder: QueryBuilder) throws -> String

    Parameters

    queryBuilder

    The QueryBuilder to use.

    Return Value

    A String representation of the column.

  • Function to build a String representation of the index of a Column instance. A QueryBuilder is used to handle variances between the various database engines and produce a correct SQL description.

    Usage Example:

    In this example, QueryBuilder and PersonTable (as defined at the top of this class) instances are initialized. The build function is then called to produce a String representation of the buildIndex and the results are printed.

    let queryBuilder = QueryBuilder()
    let personTable = PersonTable()
    let description = personTable.name.buildIndex(queryBuilder: queryBuilder)
    print(description)
    // Prints name
    

    Declaration

    Swift

    public func buildIndex(queryBuilder: QueryBuilder) -> String

    Parameters

    queryBuilder

    The QueryBuilder to use.

    Return Value

    A String representation of the index column.

  • Function to create a String representation of a Column instance for use in an SQL CREATE TABLE query. A QueryBuilder is used to handle variances between the various database engines and produce a correct SQL description.

    Usage Example:

    In this example, QueryBuilder and a PersonTable (as defined at the top of this class) instances are initialized. The create function is then used to produce a String description of the Column and print the results.

    let queryBuilder = QueryBuilder()
    let personTable = PersonTable()
    let description = try personTable.person_id.create(queryBuilder: queryBuilder)
    print(description)
    // Prints "person_id integer AUTO_INCREMENT PRIMARY KEY NOT NULL UNIQUE"
    

    Throws

    QueryError.syntaxError if column creation fails.

    Declaration

    Swift

    public func create(queryBuilder: QueryBuilder) throws -> String

    Parameters

    queryBuilder

    The QueryBuilder to use.

    Return Value

    A String representation of the column.

Column Expressions

  • Function to return a copy of the current Column instance with the given name as its alias. This is equivalent to the SQL AS operator.

    Usage Example:

    In this example, a PersonTable (as defined at the top of this class) instance is created which contains a Column. An alias for this Column instance is then created and its alias printed.

    let personTable = PersonTable()
    let aliasColumn = personTable.name.as("new name")
    print(String(describing: aliasColumn.alias))
    // Prints Optional("new name")
    

    Declaration

    Swift

    public func `as`(_ newName: String) -> Column

    Parameters

    newName

    A String containing the alias for the column.

    Return Value

    A new Column instance with the alias.

  • Create a Filter clause using the like operator.

    Declaration

    Swift

    public func like(_ pattern: String) -> Filter

    Parameters

    pattern

    The pattern to use in the like expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the like operator with Parameter.

    Declaration

    Swift

    public func like(_ pattern: Parameter) -> Filter

    Parameters

    pattern

    The pattern to use in the like expression as Parameter.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notLike operator.

    Declaration

    Swift

    public func notLike(_ pattern: String) -> Filter

    Parameters

    pattern

    The pattern to use in the notLike expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notLike operator with Parameter.

    Declaration

    Swift

    public func notLike(_ pattern: Parameter) -> Filter

    Parameters

    pattern

    The pattern to use in the notLike expression as Parameter.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the between operator for Bool.

    Declaration

    Swift

    public func between(_ value1: Bool, and value2: Bool) -> Filter

    Parameters

    value1

    The left hand side of the between expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notBetween operator for Bool.

    Declaration

    Swift

    public func notBetween(_ value1: Bool, and value2: Bool) -> Filter

    Parameters

    value1

    The left hand side of the notBetween expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the in operator for Bool.

    Declaration

    Swift

    public func `in`(_ values: Bool...) -> Filter

    Parameters

    values

    The list of values for the in expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the in operator for Bool.

    Declaration

    Swift

    public func `in`(_ values: [Bool]) -> Filter

    Parameters

    values

    An array of values for the in expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notIn operator for Bool.

    Declaration

    Swift

    public func notIn(_ values: Bool...) -> Filter

    Parameters

    values

    The list of values for the notIn expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notIn operator for Bool.

    Declaration

    Swift

    public func notIn(_ values: [Bool]) -> Filter

    Parameters

    values

    An array of values for the notIn expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the between operator for String.

    Declaration

    Swift

    public func between(_ value1: String, and value2: String) -> Filter

    Parameters

    value1

    The left hand side of the between expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notBetween operator for String.

    Declaration

    Swift

    public func notBetween(_ value1: String, and value2: String) -> Filter

    Parameters

    value1

    The left hand side of the notBetween expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the in operator for String.

    Declaration

    Swift

    public func `in`(_ values: String...) -> Filter

    Parameters

    values

    The list of values for the in expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the in operator for String.

    Declaration

    Swift

    public func `in`(_ values: [String]) -> Filter

    Parameters

    values

    An array of values for the in expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notIn operator for String.

    Declaration

    Swift

    public func notIn(_ values: String...) -> Filter

    Parameters

    values

    The list of values for the notIn expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notIn operator for String.

    Declaration

    Swift

    public func notIn(_ values: [String]) -> Filter

    Parameters

    values

    An array of values for the notIn expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the between operator for Int.

    Declaration

    Swift

    public func between(_ value1: Int, and value2: Int) -> Filter

    Parameters

    value1

    The left hand side of the between expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notBetween operator for Int.

    Declaration

    Swift

    public func notBetween(_ value1: Int, and value2: Int) -> Filter

    Parameters

    value1

    The left hand side of the notBetween expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the in operator for Int.

    Declaration

    Swift

    public func `in`(_ values: Int...) -> Filter

    Parameters

    values

    The list of values for the in expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the in operator for Int.

    Declaration

    Swift

    public func `in`(_ values: [Int]) -> Filter

    Parameters

    values

    An array of values for the in expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notIn operator for Int.

    Declaration

    Swift

    public func notIn(_ values: Int...) -> Filter

    Parameters

    values

    The list of values for the notIn expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notIn operator for Int.

    Declaration

    Swift

    public func notIn(_ values: [Int]) -> Filter

    Parameters

    values

    An array of values for the notIn expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the between operator for Float.

    Declaration

    Swift

    public func between(_ value1: Float, and value2: Float) -> Filter

    Parameters

    value1

    The left hand side of the between expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notBetween operator for Float.

    Declaration

    Swift

    public func notBetween(_ value1: Float, and value2: Float) -> Filter

    Parameters

    value1

    The left hand side of the notBetween expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the in operator for Float.

    Declaration

    Swift

    public func `in`(_ values: Float...) -> Filter

    Parameters

    values

    The list of values for the in expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the in operator for Float.

    Declaration

    Swift

    public func `in`(_ values: [Float]) -> Filter

    Parameters

    values

    An array of values for the in expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notIn operator for Float.

    Declaration

    Swift

    public func notIn(_ values: Float...) -> Filter

    Parameters

    values

    The list of values for the notIn expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notIn operator for Float.

    Declaration

    Swift

    public func notIn(_ values: [Float]) -> Filter

    Parameters

    values

    An array of values for the notIn expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the between operator for Double.

    Declaration

    Swift

    public func between(_ value1: Double, and value2: Double) -> Filter

    Parameters

    value1

    The left hand side of the between expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notBetween operator for Double.

    Declaration

    Swift

    public func notBetween(_ value1: Double, and value2: Double) -> Filter

    Parameters

    value1

    The left hand side of the notBetween expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the in operator for Double.

    Declaration

    Swift

    public func `in`(_ values: Double...) -> Filter

    Parameters

    values

    The list of values for the in expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the in operator for Double.

    Declaration

    Swift

    public func `in`(_ values: [Double]) -> Filter

    Parameters

    values

    An array of values for the in expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notIn operator for Double.

    Declaration

    Swift

    public func notIn(_ values: Double...) -> Filter

    Parameters

    values

    The list of values for the notIn expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notIn operator for Double.

    Declaration

    Swift

    public func notIn(_ values: [Double]) -> Filter

    Parameters

    values

    An array of values for the notIn expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the between operator for Parameter.

    Declaration

    Swift

    public func between(_ value1: Parameter, and value2: Parameter) -> Filter

    Parameters

    value1

    The left hand side of the between expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notBetween operator for Parameter.

    Declaration

    Swift

    public func notBetween(_ value1: Parameter, and value2: Parameter) -> Filter

    Parameters

    value1

    The left hand side of the notBetween expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the in operator for Parameter.

    Declaration

    Swift

    public func `in`(_ values: Parameter...) -> Filter

    Parameters

    values

    The list of values for the in expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the in operator for Parameter.

    Declaration

    Swift

    public func `in`(_ values: [Parameter]) -> Filter

    Parameters

    values

    An array of values for the in expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notIn operator for Parameter.

    Declaration

    Swift

    public func notIn(_ values: Parameter...) -> Filter

    Parameters

    values

    The list of values for the notIn expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notIn operator for Parameter.

    Declaration

    Swift

    public func notIn(_ values: [Parameter]) -> Filter

    Parameters

    values

    An array of values for the notIn expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the between operator for Date.

    Declaration

    Swift

    public func between(_ value1: Date, and value2: Date) -> Filter

    Parameters

    value1

    The left hand side of the between expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notBetween operator for Date.

    Declaration

    Swift

    public func notBetween(_ value1: Date, and value2: Date) -> Filter

    Parameters

    value1

    The left hand side of the notBetween expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the in operator for Date.

    Declaration

    Swift

    public func `in`(_ values: Date...) -> Filter

    Parameters

    values

    The list of values for the in expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the in operator for Date.

    Declaration

    Swift

    public func `in`(_ values: [Date]) -> Filter

    Parameters

    values

    An array of values for the in expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notIn operator for Date.

    Declaration

    Swift

    public func notIn(_ values: Date...) -> Filter

    Parameters

    values

    The list of values for the notIn expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notIn operator for Date.

    Declaration

    Swift

    public func notIn(_ values: [Date]) -> Filter

    Parameters

    values

    An array of values for the notIn expression.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the isNull operator.

    Declaration

    Swift

    public func isNull() -> Filter

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the isNotNull operator.

    Declaration

    Swift

    public func isNotNull() -> Filter

    Return Value

    A Filter containing the clause.

  • Create a Having clause using the like operator.

    Declaration

    Swift

    public func like(_ pattern: String) -> Having

    Parameters

    pattern

    The pattern to use in the like expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the like operator with Parameter.

    Declaration

    Swift

    public func like(_ pattern: Parameter) -> Having

    Parameters

    pattern

    The pattern to use in the like expression as Parameter.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notLike operator.

    Declaration

    Swift

    public func notLike(_ pattern: String) -> Having

    Parameters

    pattern

    The pattern to use in the notLike expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notLike operator with Parameter.

    Declaration

    Swift

    public func notLike(_ pattern: Parameter) -> Having

    Parameters

    pattern

    The pattern to use in the notLike expression as Parameter.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the between operator for Bool.

    Declaration

    Swift

    public func between(_ value1: Bool, and value2: Bool) -> Having

    Parameters

    value1

    The left hand side of the between expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notBetween operator for Bool.

    Declaration

    Swift

    public func notBetween(_ value1: Bool, and value2: Bool) -> Having

    Parameters

    value1

    The left hand side of the notBetween expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the in operator for Bool.

    Declaration

    Swift

    public func `in`(_ values: Bool...) -> Having

    Parameters

    values

    The list of values for the in expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the in operator for Bool.

    Declaration

    Swift

    public func `in`(_ values: [Bool]) -> Having

    Parameters

    values

    An array of values for the in expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notIn operator for Bool.

    Declaration

    Swift

    public func notIn(_ values: Bool...) -> Having

    Parameters

    values

    The list of values for the notIn expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notIn operator for Bool.

    Declaration

    Swift

    public func notIn(_ values: [Bool]) -> Having

    Parameters

    values

    An array of values for the notIn expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the between operator for String.

    Declaration

    Swift

    public func between(_ value1: String, and value2: String) -> Having

    Parameters

    value1

    The left hand side of the between expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notBetween operator for String.

    Declaration

    Swift

    public func notBetween(_ value1: String, and value2: String) -> Having

    Parameters

    value1

    The left hand side of the notBetween expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the in operator for String.

    Declaration

    Swift

    public func `in`(_ values: String...) -> Having

    Parameters

    values

    The list of values for the in expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the in operator for String.

    Declaration

    Swift

    public func `in`(_ values: [String]) -> Having

    Parameters

    values

    An array of values for the in expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notIn operator for String.

    Declaration

    Swift

    public func notIn(_ values: String...) -> Having

    Parameters

    values

    The list of values for the notIn expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notIn operator for String.

    Declaration

    Swift

    public func notIn(_ values: [String]) -> Having

    Parameters

    values

    An array of values for the notIn expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the between operator for Int.

    Declaration

    Swift

    public func between(_ value1: Int, and value2: Int) -> Having

    Parameters

    value1

    The left hand side of the between expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notBetween operator for Int.

    Declaration

    Swift

    public func notBetween(_ value1: Int, and value2: Int) -> Having

    Parameters

    value1

    The left hand side of the notBetween expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the in operator for Int.

    Declaration

    Swift

    public func `in`(_ values: Int...) -> Having

    Parameters

    values

    The list of values for the in expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the in operator for Int.

    Declaration

    Swift

    public func `in`(_ values: [Int]) -> Having

    Parameters

    values

    An array of values for the in expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notIn operator for Int.

    Declaration

    Swift

    public func notIn(_ values: Int...) -> Having

    Parameters

    values

    The list of values for the notIn expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notIn operator for Int.

    Declaration

    Swift

    public func notIn(_ values: [Int]) -> Having

    Parameters

    values

    An array of values for the notIn expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the between operator for Float.

    Declaration

    Swift

    public func between(_ value1: Float, and value2: Float) -> Having

    Parameters

    value1

    The left hand side of the between expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notBetween operator for Float.

    Declaration

    Swift

    public func notBetween(_ value1: Float, and value2: Float) -> Having

    Parameters

    value1

    The left hand side of the notBetween expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the in operator for Float.

    Declaration

    Swift

    public func `in`(_ values: Float...) -> Having

    Parameters

    values

    The list of values for the in expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the in operator for Float.

    Declaration

    Swift

    public func `in`(_ values: [Float]) -> Having

    Parameters

    values

    An array of values for the in expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notIn operator for Float.

    Declaration

    Swift

    public func notIn(_ values: Float...) -> Having

    Parameters

    values

    The list of values for the notIn expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notIn operator for Float.

    Declaration

    Swift

    public func notIn(_ values: [Float]) -> Having

    Parameters

    values

    An array of values for the notIn expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the between operator for Double.

    Declaration

    Swift

    public func between(_ value1: Double, and value2: Double) -> Having

    Parameters

    value1

    The left hand side of the between expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notBetween operator for Double.

    Declaration

    Swift

    public func notBetween(_ value1: Double, and value2: Double) -> Having

    Parameters

    value1

    The left hand side of the notBetween expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the in operator for Double.

    Declaration

    Swift

    public func `in`(_ values: Double...) -> Having

    Parameters

    values

    The list of values for the in expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the in operator for Double.

    Declaration

    Swift

    public func `in`(_ values: [Double]) -> Having

    Parameters

    values

    An array of values for the in expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notIn operator for Double.

    Declaration

    Swift

    public func notIn(_ values: Double...) -> Having

    Parameters

    values

    The list of values for the notIn expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notIn operator for Double.

    Declaration

    Swift

    public func notIn(_ values: [Double]) -> Having

    Parameters

    values

    An array of values for the notIn expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the between operator for Parameter.

    Declaration

    Swift

    public func between(_ value1: Parameter, and value2: Parameter) -> Having

    Parameters

    value1

    The left hand side of the between expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notBetween operator for Parameter.

    Declaration

    Swift

    public func notBetween(_ value1: Parameter, and value2: Parameter) -> Having

    Parameters

    value1

    The left hand side of the notBetween expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the in operator for Parameter.

    Declaration

    Swift

    public func `in`(_ values: Parameter...) -> Having

    Parameters

    values

    The list of values for the in expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the in operator for Parameter.

    Declaration

    Swift

    public func `in`(_ values: [Parameter]) -> Having

    Parameters

    values

    An array of values for the in expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notIn operator for Parameter.

    Declaration

    Swift

    public func notIn(_ values: Parameter...) -> Having

    Parameters

    values

    The list of values for the notIn expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notIn operator for Parameter.

    Declaration

    Swift

    public func notIn(_ values: [Parameter]) -> Having

    Parameters

    values

    An array of values for the notIn expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the between operator for Date.

    Declaration

    Swift

    public func between(_ value1: Date, and value2: Date) -> Having

    Parameters

    value1

    The left hand side of the between expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notBetween operator for Date.

    Declaration

    Swift

    public func notBetween(_ value1: Date, and value2: Date) -> Having

    Parameters

    value1

    The left hand side of the notBetween expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the in operator for Date.

    Declaration

    Swift

    public func `in`(_ values: Date...) -> Having

    Parameters

    values

    The list of values for the in expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the in operator for Date.

    Declaration

    Swift

    public func `in`(_ values: [Date]) -> Having

    Parameters

    values

    An array of values for the in expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notIn operator for Date.

    Declaration

    Swift

    public func notIn(_ values: Date...) -> Having

    Parameters

    values

    The list of values for the notIn expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notIn operator for Date.

    Declaration

    Swift

    public func notIn(_ values: [Date]) -> Having

    Parameters

    values

    An array of values for the notIn expression.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the isNull operator.

    Declaration

    Swift

    public func isNull() -> Having

    Return Value

    A Having containing the clause.

  • Create a Having clause using the isNotNull operator.

    Declaration

    Swift

    public func isNotNull() -> Having

    Return Value

    A Having containing the clause.

  • Create a Filter clause using the in operator for subquery.

    Declaration

    Swift

    public func `in`(_ query: Select) -> Filter

    Parameters

    query

    The subquery.

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the notIn operator for subquery.

    Declaration

    Swift

    public func notIn(_ query: Select) -> Filter

    Parameters

    query

    The subquery.

    Return Value

    A Filter containing the clause.

  • Create a Having clause using the in operator for subquery.

    Declaration

    Swift

    public func `in`(_ query: Select) -> Having

    Parameters

    query

    The subquery.

    Return Value

    A Having containing the clause.

  • Create a Having clause using the notIn operator for subquery.

    Declaration

    Swift

    public func notIn(_ query: Select) -> Having

    Parameters

    query

    The subquery.

    Return Value

    A Having containing the clause.