peachy/assets/testdb.lua

8 lines
189 B
Lua
Raw Normal View History

2024-08-06 04:46:43 +00:00
local r = fm.getRequest()
OpenDB(r)
local name = tostring(math.random(100000))
schema.new_node_type(r.db, name)
for ntype in schema.get_node_types(r.db) do
Write("<p>"..ntype.."</p>")
end