Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions Package.resolved

This file was deleted.

5 changes: 1 addition & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,12 @@ let package = Package(
.library(name: "FeatherDatabase", targets: ["FeatherDatabase"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-log", from: "1.6.0"),
// [docc-plugin-placeholder]
],
targets: [
.target(
name: "FeatherDatabase",
dependencies: [
.product(name: "Logging", package: "swift-log"),
],
dependencies: [],
swiftSettings: defaultSwiftSettings
),
.testTarget(
Expand Down
7 changes: 0 additions & 7 deletions Sources/FeatherDatabase/DatabaseConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
// Created by Tibor Bödecs on 2026. 01. 10..
//

import Logging

/// A connection that can execute database queries.
///
/// Implementations provide query execution and lifecycle management.
Expand All @@ -22,11 +20,6 @@ public protocol DatabaseConnection: Sendable {
/// The result must conform to `DatabaseRowSequence`.
associatedtype RowSequence: DatabaseRowSequence

/// The logger used for connection operations.
///
/// This is used to record database-related diagnostics.
var logger: Logger { get }

/// Runs a query using the database connection.
///
/// - Parameters:
Expand Down
2 changes: 0 additions & 2 deletions Tests/FeatherDatabaseTests/FeatherDatabaseTestSuite.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// Created by Tibor Bödecs on 2026. 01. 10..
//

import Logging
import Testing

@testable import FeatherDatabase
Expand All @@ -22,7 +21,6 @@ struct FeatherDatabaseTestSuite {
]
)
let connection = MockDatabaseConnection(
logger: Logger(label: "test"),
state: state,
mockSequence: sequence
)
Expand Down
2 changes: 0 additions & 2 deletions Tests/FeatherDatabaseTests/Mocks/MockDatabaseConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@
//

import FeatherDatabase
import Logging

struct MockDatabaseConnection: DatabaseConnection {

typealias RowSequence = MockDatabaseRowSequence

let logger: Logger
let state: MockDatabaseState
let mockSequence: RowSequence

Expand Down
Loading