Database

An SQLite connection.

Database.swift:137
final class Database

You don’t create Database instances directly. Instead, you connect to a database with one of the Database Connections, and you use a database access method. For example:

let dbQueue = try DatabaseQueue()

try dbQueue.write { (db: Database) in
    try Player(name: "Arthur").insert(db)
}

Database methods that modify, query, or validate the database schema are listed in The Database Schema.

Database Information

Database Statements

Database Transactions

Printing Database Content

Database Observation

Collations

SQL Functions

Notifications

Other Database Operations

Supporting Types