https://github.com/handrake/sqlua
Pure LuaJIT+FFI SQLite3 binding
https://github.com/handrake/sqlua
lua sqlite3
Last synced: about 1 year ago
JSON representation
Pure LuaJIT+FFI SQLite3 binding
- Host: GitHub
- URL: https://github.com/handrake/sqlua
- Owner: handrake
- License: mit
- Created: 2025-05-03T15:54:22.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-04T09:27:33.000Z (about 1 year ago)
- Last Synced: 2025-05-04T10:24:55.419Z (about 1 year ago)
- Topics: lua, sqlite3
- Language: Lua
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sqlua
[](https://github.com/handrake/sqlua/stargazers)
[](https://github.com/handrake/sqlua/watchers)
Pure LuaJIT+FFI SQLite3 binding with:
- Named + positional binding
- Statement caching
- Zero C code
## Example
```lua
local sqlua = require("sqlua")
local db = sqlua.connect(":memory:")
db:execute("CREATE TABLE users (id INT, name TEXT)")
db:execute("INSERT INTO users VALUES (?, ?)", {1, "Alice"})
for row in db:rows("SELECT * FROM users") do
print(row.id, row.name)
end
db:close()