Thanks, your second hint looks to be good. I typed this
Code: lua
And after compiling and running the "test.db" file has been created without error messages. (I used the A variable to see if Ags runs the script)
I will make further tests, but I am satisfied with this. Thanks again.
function readDb (ID)
assert (package.loadlib("sqlite3.dll", "luaopen_luasql_sqlite3"))()
env = luasql.sqlite3()
con = env:connect("test.db")
res = con:execute("create table person( id integer primary key,name text not null, email text, phone text)")
con:close()
env:close()
a = 12
return a
end
And after compiling and running the "test.db" file has been created without error messages. (I used the A variable to see if Ags runs the script)
I will make further tests, but I am satisfied with this. Thanks again.