Pocketbase SQLite Extension with Custom SQL Queries #5117
-
I have to perform some operations like perceptual hash matching after calculating the hamming distance (with the help of a particular SQLite extension). And I would like to know if it is possible without extending it as a framework? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can run custom queries by creating View collections but note that external extensions can't be loaded at the moment (unless you use the CGO driver but even then it will depend on the extension and its configuration whether it will work). If your use-case relies on the extension functionality, then PocketBase is not suitable for it and you'll be better using SQLite directly. |
Beta Was this translation helpful? Give feedback.
Then in this case you'll have to create a custom route and execute the raw query with Go or the JS
pb_hooks
.But again, I don't recommend PocketBase if your use case rely on the extension.