Structureswift-package-manager 6.0.3Basics
Configuration
SQLite.swift:105struct Configuration
struct Configuration
import Basics
final class SQLite
A minimal SQLite wrapper.
init(location: Location, configuration: Configuration = Configuration()) throws
Create or open the database at the given path.
let configuration: Configuration
The configuration for the database.
let location: Location
The location of the database.
func close() throws
func exec(query queryString: String, args: [CVarArg] = [], _ callback: SQLiteExecCallback? = nil) throws
Directly execute the given query.
func prepare(query: String) throws -> PreparedStatement
Prepare the given query.
struct Column
enum Errors
enum Location
struct PreparedStatement
Represents a prepared statement.
struct Row
Represents a row returned by called step() on a prepared statement.
enum SQLiteValue
Represents an sqlite value.
typealias SQLiteExecCallback = ([Column]) -> Void
convenience init(dbPath: AbsolutePath) throws
init()
var busyTimeoutMilliseconds: Int32
var maxPageCount: Int? { get }
var maxSizeInBytes: Int?
var maxSizeInMegabytes: Int? { get set }
var busyTimeoutSeconds: Int32 { get set }