sqlite.lua
sqlite.lua copied to clipboard
SQLite LuaJIT binding with a very simple api.
I have installed sqlite3 via Macports, which installs the dynamic library in `/opt/local/lib/libsqlite3.dylib`. On my system there is also on in `/usr/lib/libsqlite3.dylib`, but this looks like one that was shipped...
#### Purpose Make it possible to access `sqlite.tbl` operations using index access: for example: ~~~lua local kvtable = tbl("kvtable", { key = { "text", primary = true, required = true,...
Hi, I'm trying to get my head around the fact that comparison operators don't seem to work on queries, I'm pretty sure that this is me being silly but I...
Not sure why but https://luarocks.org/modules/tami5/sqlite/master-0 doesn't actually use sqlite.lua master, perhaps it needs to be updated regularly. For that I might need a CI job that repack sqlite.lua on push...
It should've worked, but it seems that we have the wrong type, need more tests
According on https://github.com/AckslD/nvim-neoclip.lua/pull/20#issuecomment-927149682 ```lua local db = sqlite.new(db_path) db:open() local tbl = sqlite.tbl("neoclip", { id = true, regtype = "text", contents = "luatable", filetype = "text", }, db) tbl:set_db(db) ```...
Support customization inspired by https://simonwillison.net/2020/Sep/23/sqlite-advanced-alter-table, idk when I'll have the time todo it, if anyone want todo it, feel free to open a pr