The easier way to query databases with Tasker, now with the ability to create your own databases! No need to hunt for a SQLite binary that is compatible with your phone. Simply add the Tasker SQLite Plugin step to a Tasker task, input the path to the database and your sql statement, and execute.
========== Return Variables ==========
For INSERT statements with columns specified i.e. INSERT INTO tTableName(colX, colY) VALUES (valX, valY):
%dbrowid = the row id of the newly inserted row
For SELECT statments:
%dbreturn = the output of the sql statement in the same way as the sqlite binary (columns separated by pipes and rows separated by new lines) so it can be dropped in without any other changes to existing SQLite tasks.
%dbreturncount = the number of rows returned
%dbrows() = an array of rows so you don't have to split %dbreturn by the new line character
%db[column_name_lower_case]() = an array of values for each column (replace [column_name_lower_case] with the actual name of the column)
This app is currently in beta. Please report any issues via email.
Root is required to access other app's databases.
</div> <div jsname="WJz9Hc" style="display:none">Cara yang lebih mudah untuk query pangkalan data dengan Tasker, kini dengan keupayaan untuk mencipta pangkalan data anda sendiri! Tidak perlu untuk memburu binari SQLite yang serasi dengan telefon anda. Cubalah menambahkan langkah Tasker SQLite Plugin untuk tugas Tasker, input laluan ke pangkalan data dan kenyataan sql anda, dan melaksanakan.
========== Pembolehubah Return ==========
Untuk penyata INSERT dengan tiang dinyatakan iaitu INSERT INTO tTableName (colX, Coly) NILAI (VALX, Valy):
% Dbrowid = id baris baris yang baru dimasukkan
Untuk statments SELECT:
% Dbreturn = output kenyataan sql dengan cara yang sama seperti SQLite binari (ruangan dipisahkan oleh paip dan baris dipisahkan oleh garis-garis baru) supaya ia boleh digugurkan tanpa apa-apa perubahan lain kepada tugas-tugas SQLite sedia ada.
% Dbreturncount = bilangan baris kembali
% Dbrows () = pelbagai baris supaya anda tidak perlu berpecah% dbreturn oleh watak barisan baru
% Db [column_name_lower_case] () = array nilai untuk setiap lajur (menggantikan [column_name_lower_case] dengan nama sebenar tiang)
Aplikasi ini kini dalam beta. Sila laporkan sebarang isu melalui e-mel.
Root diperlukan untuk mengakses pangkalan data aplikasi lain.</div> <div class="show-more-end">