SQLFunctionFlags

public struct SQLFunctionFlags : OptionSet

Custom SQL function flags

Seealso

Function Flags
  • Declaration

    Swift

    public let rawValue: Int
  • Declaration

    Swift

    public init(rawValue: Int)
  • The function gives the same output when the input parameters are the same

    Declaration

    Swift

    public static let deterministic: Database.SQLFunctionFlags
  • The function may only be invoked from top-level SQL, and cannot be used in views or triggers nor in schema structures such as CHECK constraints, DEFAULT clauses, expression indexes, partial indexes, or generated columns

    Declaration

    Swift

    public static let directOnly: Database.SQLFunctionFlags
  • Indicates to SQLite that a function may call sqlite3_value_subtype()to inspect the sub-types of its arguments

    Declaration

    Swift

    public static let subtype: Database.SQLFunctionFlags
  • The function is unlikely to cause problems even if misused. An innocuous function should have no side effects and should not depend on any values other than its input parameters.

    Declaration

    Swift

    public static let innocuous: Database.SQLFunctionFlags