upload luasqlite3

This commit is contained in:
2025-01-07 22:54:09 +05:00
parent 8b36f749e1
commit 01d0bf60a6
27 changed files with 231828 additions and 0 deletions

16
examples/simple.lua Normal file
View File

@@ -0,0 +1,16 @@
local sqlite3 = require("lsqlite3")
local db = sqlite3.open_memory()
db:exec[[
CREATE TABLE test (id INTEGER PRIMARY KEY, content);
INSERT INTO test VALUES (NULL, 'Hello World');
INSERT INTO test VALUES (NULL, 'Hello Lua');
INSERT INTO test VALUES (NULL, 'Hello Sqlite3')
]]
for row in db:nrows("SELECT * FROM test") do
print(row.id, row.content)
end