Database: fetch_database

Post Reply
Laemond
Posts: 1
Joined: Sat Jun 12, 2010 4:06 pm

Database: fetch_database

Post by Laemond »

Hi,

I am playing around with the database frontend and I tried the example from the Mudlet Manual:
Code: [show] | [select all] lua
db:create("people", {friends={"name", "city", "notes"}, enemies={"name", "city", "notes"}})
local mydb = db:fetch_database("people")
but I get a syntax error:
Lua syntax error: attempt to call method 'fetch_database' (a nil value)
It seems to work when using the get_database method instead. Is this a typo in the manual, or am I doing something wrong?

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Database: fetch_database

Post by Vadi »

Unfortunately the official manual is outdated and I can't update it. Go by this one: http://mudlet.org/asciidoc/manual.html

Post Reply