Statement
public class Statement
A statement represents an SQL query.
It is the base class of UpdateStatement that executes update statements, and SelectStatement that fetches rows.
-
The raw SQLite statement, suitable for the SQLite C API.
Declaration
Swift
public let sqliteStatement: SQLiteStatement
-
The SQL query
Declaration
Swift
public var sql: String { get }
-
The statement arguments.
Declaration
Swift
public var arguments: StatementArguments { get set }
-
Throws a DatabaseError of code SQLITE_ERROR if arguments don’t fill all statement arguments.
Declaration
Swift
public func validate(arguments: StatementArguments) throws
-
Set arguments without any validation. Trades safety for performance.
Declaration
Swift
public func unsafeSetArguments(_ arguments: StatementArguments)