SQLite3 open db problem
Posted: Wed Aug 05, 2026 1:22 am
Hi to everyone,
I am trying to learn the database plugin for hollywood as I want to use it for my small cms program. I have experience in mysql using lampp and php and javascript and so on..
As I said before I am learning hollywood as I would like to start using it not only for games creation but also for small cms program but I have problem to create a database using the function sqlite3.open(). I have no problem using the open_memory function but I would like to open a local or create a local db instead of using the ram..
This is the code I use:
Thanks
I am trying to learn the database plugin for hollywood as I want to use it for my small cms program. I have experience in mysql using lampp and php and javascript and so on..
As I said before I am learning hollywood as I would like to start using it not only for games creation but also for small cms program but I have problem to create a database using the function sqlite3.open(). I have no problem using the open_memory function but I would like to open a local or create a local db instead of using the ram..
This is the code I use:
and this is the error I receive from Hollywood:@REQUIRE "sqlite3"
@APPTITLE "DB"
@APPVERSION "$VER: GUI 1.0 (23.06.2026)"
@APPCOPYRIGHT "Copyright ©2026, Davide Palombo"
@APPAUTHOR "Davide Palombo"
@APPDESCRIPTION "Esercizio db Hollywood"
/*local database = sqlite3:open_memory()*/
local myDB = sqlite3:open('./prova.db',SQLITE_OPEN_READWRITE)
myDB:exec([[
CREATE TABLE customer (
id INTEGER PRIMARY KEY AUTOINCREMENT,
nome TEXT NOT NULL,
cognome TEXT NOT NULL,
eta INT NOT NULL
);
]])
myDB:close()
Any hint is appreciatedCharacter constant too long (line 10)
Thanks