Skip to content

Commit d73c7e5

Browse files
committed
wip
1 parent b1fb7d4 commit d73c7e5

File tree

5 files changed

+18
-8
lines changed

5 files changed

+18
-8
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,14 @@ for index in package.targets.indices {
117117
#if !os(Darwin)
118118
package.targets.append(
119119
.systemLibrary(
120-
name: "SQLite3",
120+
name: "StructuredQueriesSQLite3",
121121
providers: [.apt(["libsqlite3-dev"])]
122122
)
123123
)
124124

125125
for index in package.targets.indices {
126126
if package.targets[index].name == "StructuredQueriesSQLite" {
127-
package.targets[index].dependencies.append("SQLite3")
127+
package.targets[index].dependencies.append("StructuredQueriesSQLite3")
128128
}
129129
}
130130
#endif

Sources/SQLite3/module.modulemap

Lines changed: 0 additions & 4 deletions
This file was deleted.

Sources/StructuredQueriesSQLite/Database.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import Foundation
2-
import SQLite3
32
import StructuredQueries
43

4+
#if canImport(Darwin)
5+
import SQLite3
6+
#else
7+
import StructuredQueriesSQLite3
8+
#endif
9+
510
public struct Database {
611
@usableFromInline
712
let storage: Storage

Sources/StructuredQueriesSQLite/SQLiteQueryDecoder.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
import SQLite3
21
import StructuredQueries
32

3+
#if canImport(Darwin)
4+
import SQLite3
5+
#else
6+
import StructuredQueriesSQLite3
7+
#endif
8+
49
@usableFromInline
510
struct SQLiteQueryDecoder: QueryDecoder {
611
@usableFromInline
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module StructuredQueriesSQLite3 [system] {
2+
link "sqlite3"
3+
export *
4+
}

0 commit comments

Comments
 (0)