SQLite/LuaJIT binding and a highly opinionated wrapper for storing, retrieving, caching, and persisting SQLite databases. sqlite.lua present new possibilities for plugin development and while it's primarily created for neovim, it support all luajit environments.
sqlite:open/sql:close
sqlite:eval
sqlite:eval
to do all sort of operation.sqlite.tbl
for better experience.use { "kkharji/sqlite.lua" }
luarocks install sqlite luv
Ensure you have sqlite3
installed locally. (if you are on mac it might be installed already)
Download precompiled and set let g:sqlite_clib_path = path/to/sqlite3.dll
(note: /
)
sudo pacman -S sqlite # Arch
sudo apt-get install sqlite3 libsqlite3-dev # Ubuntu
sudo dnf install sqlite sqlite-devel # Fedora
programs.neovim.plugins = [
{
plugin = pkgs.vimPlugins.sqlite-lua;
config = "let g:sqlite_clib_path = '${pkgs.sqlite.out}/lib/libsqlite3.so'";
}
];
Notes:
pkgs.sqlite
libsqlite3.so
with libsqlite3.dylib