fix tests && update readme && other

This commit is contained in:
2025-01-10 15:57:00 +05:00
parent 0107928f66
commit 997f517070
5 changed files with 17 additions and 9 deletions

View File

@@ -25,7 +25,8 @@
"defines": [], "defines": [],
"cStandard": "c11", "cStandard": "c11",
"cppStandard": "c++11", "cppStandard": "c++11",
"compilerPath": "/home/autobuild/tools/win32/bin/kos32-gcc" "compilerPath": "/home/autobuild/tools/win32/bin/kos32-gcc",
"intelliSenseMode": "gcc-x86"
} }
], ],
"version": 4 "version": 4

View File

@@ -9,6 +9,8 @@
"editor.insertSpaces": false, "editor.insertSpaces": false,
"cSpell.enabled": true, "cSpell.enabled": true,
"cSpell.words": [ "cSpell.words": [
"luasqlite3",
"lsqlite3",
"kolibrios", "kolibrios",
"libini", "libini",
"ksys_", "ksys_",

View File

@@ -73,7 +73,7 @@ install: $(T) $(OBJS) $(SQLITE3_DIR)/libsqlite3.dll.a
$(INSTALL) $< `$(INSTALLPATH) $(MYLIB)` $(INSTALL) $< `$(INSTALLPATH) $(MYLIB)`
clean: clean:
rm -f $(OBJS) $T core core.* a.out test.db rm -f $(OBJS) $T core
html: html:
$(POD2HTML) --title="LuaSQLite 3" --infile=doc/lsqlite3.pod --outfile=doc/lsqlite3.html $(POD2HTML) --title="LuaSQLite 3" --infile=doc/lsqlite3.pod --outfile=doc/lsqlite3.html

17
README
View File

@@ -1,3 +1,4 @@
# LuaSQLite3
LuaSQLite3 provides a means to manipulate SQLite3 LuaSQLite3 provides a means to manipulate SQLite3
databases directly from lua using Lua 5. databases directly from lua using Lua 5.
@@ -16,6 +17,13 @@ the LuaSQLite3 distribution.
Lua 5 is available from http://www.lua.org/ Lua 5 is available from http://www.lua.org/
## Installation
1. install lua
2. move `lsqlite3.dll` to `/kolibrios/lib/lua`
3. rename(or copy) `/kolibrios/lib/sqlite.dll` to `/kolibrios/lib/libsqlite.dll`
## Build ## Build
``` ```
@@ -27,11 +35,8 @@ cd luasqlite3-kolibrios
make all make all
``` ```
## Tests
move repo to kolibrios filesystem and run `test/test.sh`.
## Instalation Some tests need lunit. move luinit.lua to `/kolibrios/shard/lua`.
1. install lua
2. move `lsqlite3.dll` to `/kolibrios/lib/lua`
3. rename(or copy) `/kolibrios/lib/sqlite.dll` to `/kolibrios/lib/libsqlite.dll`

View File

@@ -30,7 +30,7 @@
-- Copyright (c) 2005-18 Doug Currie -- Copyright (c) 2005-18 Doug Currie
-- Same license as above -- Same license as above
local sqlite3 = require(arg[1]) -- "lsqlite3complete" or "lsqlite3" local sqlite3 = require("lsqlite3") -- "lsqlite3complete" or "lsqlite3"
local os = os local os = os