Structureswift-package-manager 6.1.2Basics
PreparedStatement
Represents a prepared statement.
struct PreparedStatementRepresents a prepared statement.
struct PreparedStatementimport Basicsfinal class SQLiteA minimal SQLite wrapper.
init(location: SQLite.Location, configuration: SQLite.Configuration = Configuration()) throws Create or open the database at the given path.
let configuration: SQLite.ConfigurationThe configuration for the database.
let location: SQLite.LocationThe location of the database.
func close() throws func exec(query queryString: String, args: [any CVarArg] = [], _ callback: SQLite.SQLiteExecCallback? = nil) throws Directly execute the given query.
func prepare(query: String) throws -> SQLite.PreparedStatement Prepare the given query.
struct Columnstruct Configurationenum Errorsenum Locationstruct RowRepresents a row returned by called step() on a prepared statement.
enum SQLiteValueRepresents an sqlite value.
typealias SQLiteExecCallback = ([SQLite.Column]) -> Voidconvenience init(dbPath: AbsolutePath) throws init(db: OpaquePointer, query: String) throws func bind(_ arguments: [SQLite.SQLiteValue]) throws Bind the given arguments to the statement.
func clearBindings() throws Clear bindings from the prepared statement.
func finalize() throws Finalize the statement and free up resources.
func reset() throws Reset the prepared statement.
@discardableResult func step() throws -> SQLite.Row? Evaluate the prepared statement.