Package
SQLiteNIO
🪶 Non-blocking, event-driven Swift client for SQLite built on SwiftNIO.
Using SQLiteNIO
Use standard SwiftPM syntax to include SQLiteNIO as a dependency in your Package.swift file:
dependencies: [
.package(url: "https://github.com/vapor/sqlite-nio.git", from: "1.0.0")
]
Supported Platforms
SQLiteNIO supports all platforms on which NIO itself works. At the time of this writing, these include:
Ubuntu 20.04+
macOS 10.15+
iOS 13+
tvOS 13+ and watchOS 7+ (experimental)
Topics
Classes
SQLiteConnectionRepresents a single open connection to an SQLite database, either on disk or in memory.SQLiteCustomFunctionAn SQL function or aggregate.SQLiteHookTokenReturned by everyadd…Observerandset…Validatorcall, whether sync or async, of any type. Callcancel()to unregister its associated callback.
Protocols
SQLiteCustomAggregateThe protocol for custom SQLite aggregates.SQLiteDataConvertibleSQLiteDatabaseA protocol describing the minimum requirements for an object allowing access to a generic SQLite database.
Structures
SQLiteAuthorizerActionRepresents the type of database access being authorized.SQLiteAuthorizerEventEvent produced by the authorizer hook.SQLiteAuthorizerResponseThe response from an authorizer callback.SQLiteColumnSQLiteCommitEventEvent produced by the commit hook.SQLiteCommitResponseThe response from a commit hook callback.SQLiteErrorSQLiteObserverLifetimeObserver lifetime management for SQLite hooks.SQLiteRollbackEventEvent produced by the rollback hook.SQLiteRowSQLiteUpdateEventEvent produced by the update hook.SQLiteUpdateOperationRepresents the type of update operation that triggered the update hook.
Enumerations
SQLiteDataEncapsulates a single data item provided by or to SQLite.SQLiteDataTypeSupported SQLite column data types when defining schemas.