Skip to content

Commit 81a4ee2

Browse files
committed
Add warning about using libsql and sqlite-vec at the same time
1 parent 75815cc commit 81a4ee2

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

op-sqlite.podspec

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,14 @@ if phone_version then
7777
end
7878

7979
if use_sqlite_vec then
80-
raise "SQLite Vec is not supported with phone version. It cannot load extensions."
80+
raise "sqlite-vec is not supported with phone version. It cannot load extensions."
8181
end
8282
end
8383

84+
if use_libsql and use_sqlite_vec then
85+
raise "You cannot use sqlite-vec with libsql. libsql already has vector search included."
86+
end
87+
8488
Pod::Spec.new do |s|
8589
s.name = "op-sqlite"
8690
s.version = package["version"]
@@ -184,6 +188,9 @@ Pod::Spec.new do |s|
184188

185189
if use_libsql then
186190
xcconfig[:GCC_PREPROCESSOR_DEFINITIONS] += " OP_SQLITE_USE_LIBSQL=1"
191+
if use_sqlite_vec then
192+
193+
end
187194
if use_crsqlite then
188195
frameworks = ["ios/libsql_experimental.xcframework", "ios/crsqlite.xcframework"]
189196
else

0 commit comments

Comments
 (0)