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
class SQLiteConnectionRepresents a single open connection to an SQLite database, either on disk or in memory.class SQLiteCustomFunctionAn SQL function or aggregate.class SQLiteHookTokenReturned by everyadd…Observerandset…Validatorcall, whether sync or async, of any type. Callcancel()to unregister its associated callback.
Protocols
protocol SQLiteCustomAggregateThe protocol for custom SQLite aggregates.protocol SQLiteDataConvertibleprotocol SQLiteDatabaseA protocol describing the minimum requirements for an object allowing access to a generic SQLite database.
Structures
struct SQLiteAuthorizerActionRepresents the type of database access being authorized.struct SQLiteAuthorizerEventEvent produced by the authorizer hook.struct SQLiteAuthorizerResponseThe response from an authorizer callback.struct SQLiteColumnstruct SQLiteCommitEventEvent produced by the commit hook.struct SQLiteCommitResponseThe response from a commit hook callback.struct SQLiteErrorstruct SQLiteObserverLifetimeObserver lifetime management for SQLite hooks.struct SQLiteRollbackEventEvent produced by the rollback hook.struct SQLiteRowstruct SQLiteUpdateEventEvent produced by the update hook.struct SQLiteUpdateOperationRepresents the type of update operation that triggered the update hook.
Type Aliases
Enumerations
enum SQLiteDataEncapsulates a single data item provided by or to SQLite.enum SQLiteDataTypeSupported SQLite column data types when defining schemas.