Skip to content

slanska/lsqlite3

Repository files navigation

lsqlite3

Fork of http://lua.sqlite.org/index.cgi/home - Lua wrapper for SQLite - with few fixes and improvements

Original README

LuaSQLite3 provides a means to manipulate SQLite3 databases directly from lua using Lua 5.

There are two modules, identical except that one links SQLite3 dynamically, the other statically.

The module lsqlite3 links SQLite3 dynamically. To use this module you need the SQLite3 library. You can get it from http://www.sqlite.org/

The module lsqlite3complete links SQLite3 statically. The SQLite3 amalgamation source code is included in the LuaSQLite3 distribution.

Lua 5 is available from http://www.lua.org/

Fork Notes

The following fixes and improvements have been applied:

  • lsqlite3complete is built with recent version of SQLite (3.24.0, of June 16, 2018)

  • lsqlite3complete is built with FTS3/FTS4, FTS5, RTREE, JSON1 enabled

  • when source code is included into project directly and built in lsqlite3complete mode, a new define LSQLITE_EXTENSION is available for building SQLite extension (sqlite3ext.h will be used instead of sqlite3.h)

Installation Notes

Recommended installation flow:

On Linux you may need to install SQLite library:

For example, on Ubuntu:

sudo apt-get sqlite3
sudo apt-get install libsqlite3-dev

Install on LuaRocks

git clone https://github.com/slanska/lsqlite3.git
cd  lsqlite3
sudo make

Note: make will install compiled output into LuaRocks directory. If you have had original version of this library (from lua.sqlite.org), this build will override it.

Disclaimer

This fork was created to serve specific need for my own project (Flexilite). It may or may not fit your specific needs. Use at your own risk.

License

Same as original library - MIT

About

Fork of http://lua.sqlite.org/index.cgi/home - Lua wrapper for SQLite - with few fixes and improvements

Resources

License

Stars

3 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages