Hello everyone!
I’m starting to use sqlite3.
I was looking for a basic function module but did not find anything so I was trying to make it one mine.
But I’m in trouble, if I want to give a dynamic name to the table how can I use a variable in the creation instructions?
something like this:
function M.createTable( myVariableName ) db:exec[[CREATE TABLE "tableName" ( id INTEGER PRIMARY KEY AUTOINCREMENT, level INTEGER UNIQUE, data TEXT NOT NULL );]] end
I would like to replace tableName in myVariableName…