mirror of
https://github.com/Egor00f/luasqlite3-kolibrios.git
synced 2025-09-11 14:39:57 +02:00
fix tests && update readme && other
This commit is contained in:
3
.vscode/c_cpp_properties.json
vendored
3
.vscode/c_cpp_properties.json
vendored
@@ -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
|
||||||
|
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@@ -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_",
|
||||||
|
2
Makefile
2
Makefile
@@ -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
17
README
@@ -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`
|
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user