How would I go about connecting to a previously created sqlite3 database, or importing the data from it, to a Mudlet compatible version?
Example, I have a sqlite3 database created with python and sqlite libs, called 'shop.db' . I want to be able to access this DB from Mudlet, through builtin functions or the luasql. Is this possible?
When I try to access the database (it is in Mudlet home DIR, under my profile name) I get the following in the 'errors' console
Code: Select all
[ERROR] object:<deletethis> function:<Alias25>
</home/chris/.config/mudlet/db.lua:532: attempt to concatenate local 's_name' (a nil value)>
Code: Select all
local mydb = db:fetch(getMudletHomeDir() .. "/shop.db")
db:fetch(mydb)