Closed papiro closed 2 years ago
I would expect the following to create a table called "foos":
db.query("CREATE TABLE ? (bar, baz)", ["foos"])
It throws the error SqliteError: near "?": syntax error.
SqliteError: near "?": syntax error
Ultimately I would like to also use placeholders for the column names. Is this not possible?
SQLite unfortunately does not allow for placeholders as table names.
I would expect the following to create a table called "foos":
It throws the error
SqliteError: near "?": syntax error
.Ultimately I would like to also use placeholders for the column names. Is this not possible?