mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-12 01:17:29 +01:00
30 lines
566 B
Swift
30 lines
566 B
Swift
//
|
|
// String+Database.swift
|
|
// Database
|
|
//
|
|
// Created by Brent Simmons on 8/20/17.
|
|
// Copyright © 2017 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import RSDatabase
|
|
|
|
// A tag is a String.
|
|
// Extending tag to conform to DatabaseObject means extending String to conform to DatabaseObject.
|
|
|
|
extension String: DatabaseObject {
|
|
|
|
public func databaseDictionary() -> NSDictionary? {
|
|
|
|
preconditionFailure("databaseDictionary() called for a tag: this should never happen.")
|
|
}
|
|
|
|
public var databaseID: String {
|
|
get {
|
|
return self
|
|
}
|
|
}
|
|
}
|
|
|
|
|