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
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ jobs:
env:
VALIDATOR_SUBSPEC: SQLCipher
run: ./run-tests.sh
- name: "Run tests (tuist)"
run: |
brew install tuist
cd Tests/Tuist/SQLite-Test
tuist install
tuist test
build-linux:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ bin/
Packages/
.swiftpm/
Package.resolved
Derived/
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
0.15.6 (28-01-2026), [diff][diff-0.15.6]
0.16.0 (28-01-2026), [diff][diff-0.16.0]
========================================
* Revert trait changes for Linux
* Revert trait changes for Linux
* Remove SwiftToolchainCSQLite (replaced with fork)

0.15.5 (22-01-2026), [diff][diff-0.15.5]
========================================
Expand Down Expand Up @@ -194,7 +195,7 @@ For breaking changes, see [Upgrading.md](Documentation/Upgrading.md).
[diff-0.15.3]: https://github.com/stephencelis/SQLite.swift/compare/0.15.2...0.15.3
[diff-0.15.4]: https://github.com/stephencelis/SQLite.swift/compare/0.15.3...0.15.4
[diff-0.15.5]: https://github.com/stephencelis/SQLite.swift/compare/0.15.4...0.15.5
[diff-0.15.6]: https://github.com/stephencelis/SQLite.swift/compare/0.15.5...0.15.6
[diff-0.16.0]: https://github.com/stephencelis/SQLite.swift/compare/0.15.5...0.16.0

[#30]: https://github.com/stephencelis/SQLite.swift/issues/30
[#142]: https://github.com/stephencelis/SQLite.swift/issues/142
Expand Down
16 changes: 8 additions & 8 deletions Documentation/Index.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ process of downloading, compiling, and linking dependencies.

```swift
dependencies: [
.package(url: "https://github.com/stephencelis/SQLite.swift.git", from: "0.15.6")
.package(url: "https://github.com/stephencelis/SQLite.swift.git", from: "0.16.0")
]
```

Expand All @@ -127,7 +127,7 @@ SQLite.swift for different use cases.
```swift
dependencies: [
.package(url: "https://github.com/stephencelis/SQLite.swift.git",
from: "0.15.6",
from: "0.16.0",
traits: ["XXX"])
]
```
Expand All @@ -150,7 +150,7 @@ If you want to use [SQLCipher][] with SQLite.swift you can specify the `SQLCiphe

```swift
depdencies: [
.package(url: "https://github.com/stephencelis/SQLite.swift.git", from: "0.15.6", traits: ["SQLCipher"])
.package(url: "https://github.com/stephencelis/SQLite.swift.git", from: "0.16.0", traits: ["SQLCipher"])
]
```

Expand Down Expand Up @@ -180,7 +180,7 @@ let package = Package(
dependencies: [
.package(
url: "https://github.com/stephencelis/SQLite.swift.git",
from: "0.15.6",
from: "0.16.0",
traits: ["SQLCipher"])
],
targets: [
Expand Down Expand Up @@ -227,7 +227,7 @@ install SQLite.swift with Carthage:
2. Update your Cartfile to include the following:

```ruby
github "stephencelis/SQLite.swift" ~> 0.15.6
github "stephencelis/SQLite.swift" ~> 0.16.0
```

3. Run `carthage update` and [add the appropriate framework][Carthage Usage].
Expand Down Expand Up @@ -257,7 +257,7 @@ install SQLite.swift with Carthage:
use_frameworks!

target 'YourAppTargetName' do
pod 'SQLite.swift', '~> 0.15.6'
pod 'SQLite.swift', '~> 0.16.0'
end
```

Expand All @@ -271,7 +271,7 @@ with the OS you can require the `standalone` subspec:

```ruby
target 'YourAppTargetName' do
pod 'SQLite.swift/standalone', '~> 0.15.6'
pod 'SQLite.swift/standalone', '~> 0.16.0'
end
```

Expand All @@ -281,7 +281,7 @@ dependency to sqlite3 or one of its subspecs:

```ruby
target 'YourAppTargetName' do
pod 'SQLite.swift/standalone', '~> 0.15.6'
pod 'SQLite.swift/standalone', '~> 0.16.0'
pod 'sqlite3/fts5', '= 3.15.0' # SQLite 3.15.0 with FTS5 enabled
end
```
Expand Down
2 changes: 1 addition & 1 deletion Documentation/Linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ embed SQLite:
```swift
dependencies: [
.package(url: "https://github.com/stephencelis/SQLite.swift.git",
from: "0.15.6",
from: "0.16.0",
traits: ["SQLiteSwiftCSQLite"])
]
```
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Swift code.

```swift
dependencies: [
.package(url: "https://github.com/stephencelis/SQLite.swift.git", from: "0.15.6")
.package(url: "https://github.com/stephencelis/SQLite.swift.git", from: "0.16.0")
]
```

Expand All @@ -155,7 +155,7 @@ install SQLite.swift with Carthage:
2. Update your Cartfile to include the following:

```ruby
github "stephencelis/SQLite.swift" ~> 0.15.6
github "stephencelis/SQLite.swift" ~> 0.16.0
```

3. Run `carthage update` and
Expand Down
2 changes: 1 addition & 1 deletion SQLite.swift.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SQLite.swift"
s.version = "0.15.6"
s.version = "0.16.0"
s.summary = "A type-safe, Swift-language layer over SQLite3."

s.description = <<-DESC
Expand Down
4 changes: 2 additions & 2 deletions SQLite.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1772,7 +1772,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MACOSX_DEPLOYMENT_TARGET = 10.13;
MARKETING_VERSION = 0.15.6;
MARKETING_VERSION = 0.16.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_NAME = "";
Expand Down Expand Up @@ -1832,7 +1832,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MACOSX_DEPLOYMENT_TARGET = 10.13;
MARKETING_VERSION = 0.15.6;
MARKETING_VERSION = 0.16.0;
MTL_ENABLE_DEBUG_INFO = NO;
PRODUCT_NAME = "";
SDKROOT = iphoneos;
Expand Down
2 changes: 1 addition & 1 deletion Tests/SPM/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let package = Package(
// for testing from same repository
.package(path: "../..")
// normally this would be:
// .package(url: "https://github.com/stephencelis/SQLite.swift.git", from: "0.15.6")
// .package(url: "https://github.com/stephencelis/SQLite.swift.git", from: "0.16.0")
],
targets: [
.executableTarget(name: "test", dependencies: [.product(name: "SQLite", package: "SQLite.swift")])
Expand Down
70 changes: 70 additions & 0 deletions Tests/Tuist/SQLite-Test/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Xcode ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

### Xcode Patch ###
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcodeproj/xcshareddata/
!*.xcworkspace/contents.xcworkspacedata
/*.gcno

### Projects ###
*.xcodeproj
*.xcworkspace

### Tuist derived files ###
graph.dot
Derived/

### Tuist managed dependencies ###
Tuist/.build
36 changes: 36 additions & 0 deletions Tests/Tuist/SQLite-Test/Project.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import ProjectDescription

let project = Project(
name: "SQLite-Test",
targets: [
.target(
name: "SQLite-Test",
destinations: .iOS,
product: .app,
bundleId: "dev.tuist.SQLite-Test",
infoPlist: .extendingDefault(
with: [
"UILaunchScreen": [
"UIColorName": "",
"UIImageName": ""
]
]
),
buildableFolders: [
"SQLite-Test/Sources"
],
dependencies: [.external(name: "SQLite")]
),
.target(
name: "SQLite-TestTests",
destinations: .iOS,
product: .unitTests,
bundleId: "dev.tuist.SQLite-TestTests",
infoPlist: .default,
buildableFolders: [
"SQLite-Test/Tests"
],
dependencies: [.target(name: "SQLite-Test")]
)
]
)
13 changes: 13 additions & 0 deletions Tests/Tuist/SQLite-Test/SQLite-Test/Sources/SQLiteTestApp.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import SwiftUI
import SQLite

let connection = try! SQLite.Connection(.inMemory)

@main
struct SQLiteTestApp: App {
var body: some Scene {
WindowGroup {
Text("version: \(connection.sqliteVersion.description)").padding()
}
}
}
13 changes: 13 additions & 0 deletions Tests/Tuist/SQLite-Test/SQLite-Test/Tests/SQLiteTestTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Testing
import SQLite

struct SQLiteTestTests {

@Test func test_connection() async throws {
let connection = try SQLite.Connection(.inMemory)
let version = connection.sqliteVersion

#expect(version.major == 3)

}
}
3 changes: 3 additions & 0 deletions Tests/Tuist/SQLite-Test/Tuist.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import ProjectDescription

let tuist = Tuist(project: .tuist())
22 changes: 22 additions & 0 deletions Tests/Tuist/SQLite-Test/Tuist/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// swift-tools-version: 6.0
import PackageDescription

#if TUIST
import struct ProjectDescription.PackageSettings

let packageSettings = PackageSettings(
// Customize the product types for specific package product
// Default is .staticFramework
// productTypes: ["Alamofire": .framework,]
productTypes: [:]
)
#endif

let package = Package(
name: "SQLite-Test",
dependencies: [
// Add your own dependencies here:
.package(path: "../../../..")
// You can read more about dependencies here: https://docs.tuist.io/documentation/tuist/dependencies
]
)