Skip to content

handrake/sqlua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sqlua

GitHub Stars GitHub Watchers

Pure LuaJIT+FFI SQLite3 binding with:

  • Named + positional binding
  • Statement caching
  • Zero C code

Example

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()

About

Pure LuaJIT+FFI SQLite3 binding

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages