Hi, just installed Beta 3 and I am trying to create my first database (sample shows only memory creation). unfortunately the code below is not working. First I create the database manually (using Firefox SQLite Manager) and tried to read data - didn’t work. After that, I tried only to use the open command (which suppose to create a new database if the named one does not exist), but it didn’t create anything. Any ideas why? thanks!
require “sqlite3”
local db = sqlite3.open(‘test.sqlite’)
for row in db:nrows(“SELECT * FROM temples”) do
local t = display.newText(row.tName, 20, 30*row.id, null, 16)
t:setTextColor(255,0,255)
end
db:close() – close
Alex [import]uid: 4883 topic_id: 1005 reply_id: 301005[/import]
