1- sql.nvim π«
1+ sqlite.lua π«
22=================
33
44
55[ SQLite] /[ LuaJIT] binding and a highly opinionated wrapper for storing, retrieving, caching, and persisting [ SQLite] databases.
6- [ sql.nvim ] present new possibilities for plugin development and while it's primarily created for [ neovim] , it support all luajit environments.
6+ [ sqlite.lua ] present new possibilities for plugin development and while it's primarily created for [ neovim] , it support all luajit environments.
77
8- - [ Changelog] ( https://github.com/tami5/sql.nvim/blob/master/CHANGELOG.md )
9- - [ Docs] ( https://github.com/tami5/sql.nvim/blob/master/doc/sql.txt )
10-
11- β²οΈ Status
12- ------------------
13- Under heavy development. Low level API is stable for usage, however, top level API and new features are subject to change.
14- Please wait for 0.1 relaese or watch the repo for changes.
8+ - [ Changelog] ( https://github.com/tami5/sqlite.lua/blob/master/CHANGELOG.md )
9+ - [ Docs] ( https://github.com/tami5/sqlite.lua/blob/master/doc/sql.txt )
1510
11+ <p align =" center " > <img src =" ./doc/preview.svg " > </p >
1612
1713β¨ Features:
1814------------------
19- - Connect, reconnect, close sql db connections ` sql :open/sql:close`
20- - Evaluate any sqlite statement and return result if any ` sql :eval`
21- - Helper function over ` sql :eval` to do all sort of operation.
22- - High level API with ` sql:table ` for better experience
15+ - Connect, reconnect, close sql db connections ` sqlite :open/sql:close`
16+ - Evaluate any sqlite statement and return result if any ` sqlite :eval`
17+ - Helper function over ` sqlite :eval` to do all sort of operation.
18+ - High level API with ` sqlite.tbl ` for better experience.
2319- lua tables deserialization/serialization (in helper functions and high level api)
2420- 90% test coverage.
2521- Up-to-date docs and changelog
@@ -28,14 +24,23 @@ Please wait for 0.1 relaese or watch the repo for changes.
2824π§ Installation
2925-----------------
3026
31- Add ` sql.nvim ` to your lua ` package.path ` , neovim ` /**/start/ ` or use your
32- favorite vim package manager, and ensure you have ` sqlite3 ` installed locally.
33- If you are using macos, then sqlite3 should be installed already, otherwise install using brew.
27+ ### [ Packer.nvim] ( https://github.com/wbthomason/packer.nvim )
28+
29+ ``` lua
30+ use { " tami5/sqlite.lua" }
31+ ```
32+
33+ ### [ luarocks] ( https://luarocks.org/ )
34+
35+ ``` bash
36+ luarocks install sqlite
37+ ```
3438
39+ ** Ensure you have ` sqlite3 ` installed locally.**
3540
3641#### Windows
3742
38- [ Download precompiled] ( https://www.sqlite.org/download.html ) and set ` let g:sql_clib_path = path/to/sqlite3.dll ` (note: ` / ` )
43+ [ Download precompiled] ( https://www.sqlite.org/download.html ) and set ` let g:sqlite_clib_path = path/to/sqlite3.dll ` (note: ` / ` )
3944
4045#### Linux
4146``` bash
@@ -48,14 +53,13 @@ sudo apt-get install sqlite3 libsqlite3-dev # Ubuntu
4853programs.neovim.plugins = [
4954 {
5055 plugin = pkgs.vimPlugins.sql-nvim;
51- config = "let g:sql_clib_path = '${pkgs.sqlite.out}/lib/libsqlite3.so'";
56+ config = "let g:sqlite_clib_path = '${pkgs.sqlite.out}/lib/libsqlite3.so'";
5257 }
5358];
5459```
5560
5661[ Installation ] : #π§_installation
57- [ Status ] : #status
5862[ SQLite ] : https://www.sqlite.org/index.html
5963[ LuaJIT ] : https://luajit.org
60- [ sql.nvim ] : https://github.com/tami5/sql.nvim
64+ [ sqlite.lua ] : https://github.com/tami5/sqlite.lua
6165[ neovim ] : https://github.com/neovim/neovim
0 commit comments