使用JSON1的Ubuntu 16.04上的SQLite

Dro*_*dOS 1 sqlite sqlite-json1

是否存在使用JSON1扩展编译的Linux/Ubuntu的SQLite发行版.SQLite JSON1页面上的说明只解释了如何在编译后加载扩展 - 我想避免的题外话.

saa*_*aaj 10

Ubuntu Xenial附带了SQLite 3.11.0-1ubuntu1,它使用JSON1扩展编译.

$ docker run --rm -it ubuntu:xenial
# apt-get update && apt-get install --no-install-recommends -y sqlite3
# echo "PRAGMA compile_options;" | sqlite3 | grep JSON1
ENABLE_JSON1
Run Code Online (Sandbox Code Playgroud)

  • 完美的!您不仅告诉我默认情况下可用,而且现在还告诉我验证它是否可用。很好的答案。 (2认同)