@@ -94,6 +94,29 @@ The `SQLMiddleware` module has just a single top-level function `middlewareDatab
94
94
95
95
A dependent of ` SQLMiddleware ` that enables the ` SQLCipher ` trait.
96
96
97
+ ``` swift
98
+ // swift-tools-version: 6.1
99
+ import PackageDescription
100
+
101
+ let package = Package (
102
+ name : " MiddlewareClientWithSQLCipher" ,
103
+ products : [
104
+ .library (name : " MiddlewareClientWithSQLCipher" ,
105
+ targets : [" MiddlewareClientWithSQLCipher" ])
106
+ ],
107
+ dependencies : [
108
+ .package (path : " ../SQLMiddleware" , traits : [" SQLCipher" ])
109
+ ],
110
+ targets : [
111
+ .target (name : " MiddlewareClientWithSQLCipher" , dependencies : [
112
+ .product (name : " SQLMiddleware" , package : " SQLMiddleware" )
113
+ ]),
114
+ .testTarget (name : " MiddlewareClientWithSQLCipherTests" ,
115
+ dependencies : [" MiddlewareClientWithSQLCipher" ])
116
+ ]
117
+ )
118
+ ```
119
+
97
120
It contains a test case:
98
121
99
122
``` swift
@@ -106,6 +129,29 @@ It contains a test case:
106
129
107
130
A dependent of ` SQLMiddleware ` that does not enable the ` SQLCipher ` trait. It is otherwise identical to ` MiddlewareClientWithSQLCipher ` in every way.
108
131
132
+ ``` swift
133
+ // swift-tools-version: 6.1
134
+ import PackageDescription
135
+
136
+ let package = Package (
137
+ name : " MiddlewareClientWithoutSQLCipher" ,
138
+ products : [
139
+ .library (name : " MiddlewareClientWithoutSQLCipher" ,
140
+ targets : [" MiddlewareClientWithoutSQLCipher" ])
141
+ ],
142
+ dependencies : [
143
+ .package (path : " ../SQLMiddleware" )
144
+ ],
145
+ targets : [
146
+ .target (name : " MiddlewareClientWithoutSQLCipher" , dependencies : [
147
+ .product (name : " SQLMiddleware" , package : " SQLMiddleware" )
148
+ ]),
149
+ .testTarget (name : " MiddlewareClientWithoutSQLCipherTests" ,
150
+ dependencies : [" MiddlewareClientWithoutSQLCipher" ])
151
+ ]
152
+ )
153
+ ```
154
+
109
155
It contains a test case:
110
156
111
157
``` swift
0 commit comments