mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-05-13 01:45:12 -04:00
19 lines
659 B
Swift
19 lines
659 B
Swift
import Foundation
|
|
import SQLite
|
|
|
|
/// Extension to make VaultStore conform to DatabaseClient protocol.
|
|
/// This allows VaultStore to be used with the repository pattern.
|
|
extension VaultStore: DatabaseClient {
|
|
/// The ItemRepository instance for this VaultStore.
|
|
/// Lazily initialized to use self as the database client.
|
|
public var itemRepository: ItemRepository {
|
|
return ItemRepository(client: self)
|
|
}
|
|
|
|
/// The PasskeyRepository instance for this VaultStore.
|
|
/// Lazily initialized to use self as the database client.
|
|
public var passkeyRepository: PasskeyRepository {
|
|
return PasskeyRepository(client: self)
|
|
}
|
|
}
|