New tasker DB commands?

543 views
Skip to first unread message

Bill DeWitt

unread,
May 14, 2021, 9:56:23 PM5/14/21
to Tasker
I just read that Tasker now has SQL/DB functions (thanks Joao) and we don't need to use the SQLite Plugin anymore.

Yes, I'm sure I'm behind on that news. I've been doing other things.

So, is there a place I can catch up and learn what's going on with that? My quick google searches so far refer back to the SQLite Plugin.

Marta Hintz

unread,
May 16, 2021, 10:49:30 PM5/16/21
to Tasker
The question mark in the top right gives you info on this.  I'm assuming you may need to know some basic sql commands.  On tasker reddit there seems to be a user fairly well versed in using this.  

jmjc...@gmail.com

unread,
May 17, 2021, 10:37:07 PM5/17/21
to Tasker
Not sure what new SQL functions you referred to. But Tasker has the "SQL Query" action that works with your own database without using plug-in.

Baerdric

unread,
May 19, 2021, 9:26:04 AM5/19/21
to tas...@googlegroups.com
Thanks. I guess I just didn't see that earlier. I read about it when I went to reinstall SQLite Plugin and the author said it was no longer necessary but didn't elaborate. I haven't really messed around in tasker for a few years so I'm sure there's lots that Joao put in after he took over for Pent.

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/hKT21mK5EOM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/c2889b08-8dd9-4efa-bfe7-e3e32d149e48n%40googlegroups.com.

CHunter

unread,
Mar 11, 2022, 5:53:44 PM3/11/22
to Tasker

I had some success with the SQL action, starting here:
https://www.reddit.com/r/tasker/comments/o9wghn/how_to_get_detailed_info_about/

I have a task using SQL Query action with Mode URI Formatted and URI content://call_log/calls/  and it is working. I want to add a LIMIT clause, so I have to rewrite to use Mode Raw, because that way I can enter the full SQL statement.
In Raw mode I cannot locate the file.
I get this error:
file not found
storage/emulated/0/content://call_log/

After some research, it looks like Raw mode needs to be pointed to a db file, which I do not have; but URI mode can use a URI, which I have. However, it would be great to have a URI mode that allows the Query to be entered as a full SQL statement, so that other SQL directives besides SELECT, WHERE can be used, like LIMIT.

jmjc...@gmail.com

unread,
Mar 15, 2022, 10:27:08 PM3/15/22
to Tasker
Some content providers do work with LIMIT. Simply put, e.g. LIMIT 1, in the Order By field. 

If a content provider doesn't work with LIMIT, you will need to get all items and then get the specific number of items from the array returned.

C H

unread,
Mar 16, 2022, 9:49:31 AM3/16/22
to tas...@googlegroups.com
Thank you, this is exactly what I wanted:
"Simply put, e.g. LIMIT 1, in the Order By field."
Reply all
Reply to author
Forward
0 new messages