Hi! I'm new to Tauri and sqlite, so I'm probably doing something wrong, but using the sqlite plugin I can't run functions.
For example:
await db.select('SELECT max(id) from tasks')
returns an object:
{0 : {max(id): null}}```
The same if I do
```JavaScript
await db.select('SELECT last_insert_rowid()');
//returns '{0 : {last_insert_rowid(): null}}'
Probably have guessed I'm trying to get the last id of a table. But I don't understand why does SELECTs don't work.
If I'm just misunderstanding sqlite just tell me and I go back to study.
PD (not related with the functions that don't work but with the last id): Also tried with execute as it seems to return the last id, but
await db.execute('SELECT * from tasks')
//returns { rowsAffected: 0, lastInsertId: 0 }
which is not even ok, as the db has 3 rows that I can clearly read with db.select('SELECT * FROM tasks') with ids 1, 2 and 3.