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
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

swiftlang_checks:
name: Swiftlang Checks
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@0.0.7
with:
license_header_check_project_name: "project"
format_check_enabled : true
Expand Down
8 changes: 4 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ let package = Package(
.library(name: "FeatherDatabaseSQLite", targets: ["FeatherDatabaseSQLite"]),
],
traits: [
"ServiceLifecycleSupport",
"ServiceLifecycle",
.default(
enabledTraits: [
"ServiceLifecycleSupport",
"ServiceLifecycle",
]
),
],
Expand Down Expand Up @@ -66,7 +66,7 @@ let package = Package(
.product(
name: "ServiceLifecycle",
package: "swift-service-lifecycle",
condition: .when(traits: ["ServiceLifecycleSupport"])
condition: .when(traits: ["ServiceLifecycle"])
),
],
swiftSettings: defaultSwiftSettings
Expand All @@ -86,7 +86,7 @@ let package = Package(
name: "ServiceLifecycleTestKit",
package: "swift-service-lifecycle",
condition: .when(
traits: ["ServiceLifecycleSupport"]
traits: ["ServiceLifecycle"]
)
),
],
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
SQLite driver implementation for the abstract [Feather Database](https://github.com/feather-framework/feather-database) Swift API package.

[
![Release: 1.0.0-beta.8](https://img.shields.io/badge/Release-1%2E0%2E0--beta%2E8-F05138)
![Release: 1.0.0-beta.9](https://img.shields.io/badge/Release-1%2E0%2E0--beta%2E9-F05138)
](
https://github.com/feather-framework/feather-database-sqlite/releases/tag/1.0.0-beta.8
https://github.com/feather-framework/feather-database-sqlite/releases/tag/1.0.0-beta.9
)

## Features
Expand Down Expand Up @@ -36,7 +36,7 @@ SQLite driver implementation for the abstract [Feather Database](https://github.
Add the dependency to your `Package.swift`:

```swift
.package(url: "https://github.com/feather-framework/feather-database-sqlite", exact: "1.0.0-beta.8"),
.package(url: "https://github.com/feather-framework/feather-database-sqlite", exact: "1.0.0-beta.9"),
```

Then add `FeatherDatabaseSQLite` to your target dependencies:
Expand All @@ -53,17 +53,17 @@ To enable an additional trait on the package, update the package dependency:
```diff
.package(
url: "https://github.com/feather-framework/feather-database-sqlite",
exact: "1.0.0-beta.8",
exact: "1.0.0-beta.9",
+ traits: [
+ .defaults,
+ "ServiceLifecycleSupport",
+ "ServiceLifecycle",
+ ]
)
```

Available traits:

- `ServiceLifecycleSupport` (default): Adds support for `DatabaseServiceSQLite`, a `ServiceLifecycle.Service` implementation for managing SQLite clients.
- `ServiceLifecycle` (default): Adds support for `DatabaseServiceSQLite`, a `ServiceLifecycle.Service` implementation for managing SQLite clients.


## Usage
Expand Down
2 changes: 1 addition & 1 deletion Sources/FeatherDatabaseSQLite/DatabaseServiceSQLite.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Created by Tibor Bödecs on 2026. 01. 29..
//

#if ServiceLifecycleSupport
#if ServiceLifecycle

import SQLiteNIOExtras
import ServiceLifecycle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Testing
@testable import FeatherDatabaseSQLite
@testable import SQLiteNIOExtras

#if ServiceLifecycleSupport
#if ServiceLifecycle
import ServiceLifecycleTestKit
#endif

Expand Down Expand Up @@ -1267,13 +1267,13 @@ struct FeatherDatabaseSQLiteTestSuite {

}

#if ServiceLifecycleSupport
#if ServiceLifecycle
import ServiceLifecycle

extension FeatherDatabaseSQLiteTestSuite {

@Test
func serviceLifecycleSupport() async throws {
func basicServiceLifecycleSupport() async throws {
var logger = Logger(label: "test")
logger.logLevel = .info

Expand Down