mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 00:04:25 +00:00
20 lines
549 B
Swift
20 lines
549 B
Swift
//
|
|
// Database.swift
|
|
// RSDatabase
|
|
//
|
|
// Created by Brent Simmons on 12/15/19.
|
|
// Copyright © 2019 Brent Simmons. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import RSDatabaseObjC
|
|
|
|
/// Block that executes database code.
|
|
public typealias DatabaseBlock = @Sendable (FMDatabase) -> Void
|
|
|
|
/// Completion block that signals a database operation finished.
|
|
public typealias DatabaseCompletionBlock = @Sendable () -> Void
|
|
|
|
/// Dictionary representing one row of database values, keyed by column name.
|
|
public typealias DatabaseDictionary = [String: Any]
|