• Stars
    star
    468
  • Rank 93,283 (Top 2 %)
  • Language
    Lua
  • License
    MIT License
  • Created almost 4 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

SQLite LuaJIT binding with a very simple api.

sqlite.lua πŸ’«

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.

preview

✨ Features:

  • Connect, reconnect, close sql db connections sqlite:open/sql:close
  • Evaluate any sqlite statement and return result if any sqlite:eval
  • Helper function over sqlite:eval to do all sort of operation.
  • High level API with sqlite.tbl for better experience.
  • lua tables deserialization/serialization (in helper functions and high level api)
  • 90% test coverage.
  • Up-to-date docs and changelog

🚧 Installation

Packer.nvim (Neovim)

use { "kkharji/sqlite.lua" }

luarocks (LuaJIT)

luarocks install sqlite luv

Ensure you have sqlite3 installed locally. (if you are on mac it might be installed already)

Windows

Download precompiled and set let g:sqlite_clib_path = path/to/sqlite3.dll (note: /)

Linux

sudo pacman -S sqlite # Arch
sudo apt-get install sqlite3 libsqlite3-dev # Ubuntu
sudo dnf install sqlite sqlite-devel # Fedora

Nix (home-manager)

programs.neovim.plugins = [
    {
      plugin = pkgs.vimPlugins.sqlite-lua;
      config = "let g:sqlite_clib_path = '${pkgs.sqlite.out}/lib/libsqlite3.so'";
    }
];

Notes:

  • Ensure you install pkgs.sqlite
  • If you are using home-manager on OSX, you must replace libsqlite3.so with libsqlite3.dylib

πŸ”₯ Powered by sqlite.lua

More Repositories

1

xbase

Develop Apple software products within your favorite editor.
Rust
524
star
2

lspsaga.nvim

The neovim language-server-client UI
Lua
411
star
3

lispdocs.nvim

https://clojuredocs.org examples and notes, instantly under your finger tips
Lua
43
star
4

compe-conjure

compe-nvim source for conjure
Lua
18
star
5

redis-derive

This crate implements the FromRedisValue and ToRedisArgs Traits from mitsuhiko / redis-rs for any struct
Rust
16
star
6

swift.nvim

Swift Development environment for hard-core vim users. (WIIIIIP)
Lua
14
star
7

yctrl

Thin wrapper around yabai that adds convenient and intuitive fixes
Rust
11
star
8

process-stream

Thin wrapper around [`tokio::process`] to make it streamable
Rust
9
star
9

redis-om

A Rust/Redis ORM-style library define and manipulate data using derive macros
Rust
8
star
10

denv

small configuration utility written as an excuse to experiment with janet.
Clojure
7
star
11

base16

Lua
4
star
12

nixenv

Nix Library for creating OS independent Systems.
Nix
4
star
13

mdenv.nvim

WIP markdown editing environment
Vim Script
3
star
14

solid-codeblock

Simple lightweight solid codeblock component on top of shiki library
TypeScript
2
star
15

kkharji

2
star
16

vlang.nvim

Simple asynchronous and non blocking features and utilities for working with Vlang.
Lua
2
star
17

nix-templates

Personal Nix Templates
Nix
2
star
18

clj-dev

Data-driven clojure development environment
Clojure
2
star
19

py-test-with-devenv

Nix
1
star
20

vplayground

A tmp playground for vlang
V
1
star
21

build-server-protocol

Rust crate for creating BSP Servers.
Rust
1
star
22

clj-duct-reitit

Duct Module for routing with reitit and handling requests with ring.
Clojure
1
star
23

vim-iced-compe

nvim-compe source for vim-iced
Vim Script
1
star
24

nixlua

Package and develop lua with nix with ease. (WIP)
Nix
1
star
25

rspc-proxy

Experimental type-safe proxy for rspc web/js clients
TypeScript
1
star