Using SQLite extensions on macOS

Ellie Huxtable

在 macOS 上使用 SQLite 擴充功能

我當時在試玩 sqlite-zstd,嘗試載入這個擴充功能時……

.load libsqlite_zstd
Error: unknown command or invalid arguments:  "load". Enter ".help" for help

蛤?

原來,macOS 內建的 sqlite 在建置時就沒有啟用載入擴充功能的能力。

幸好,Homebrew 有個實用許多的版本

brew install sqlite

請注意,這個版本預設不會建立連結。你必須手動建立連結

brew link sqlite --force

或者,直接指定路徑。

原文由 Ellie Huxtable 發布

本文章由 muse-spark-1.2-contributor 進行翻譯