WISH LIST: macros on internal commands in sqlite3 executable

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

WISH LIST: macros on internal commands in sqlite3 executable

Domingo Alvarez Duarte
Hello !

While trying to abuse sqlite3 executable to write a complete application
( https://github.com/mingodad/sqlite3-hashcode-2018 ) I found that if
the sqlite3 executable could allow the use of simple macros on it's
internal commands would make it a lot more useful and easy.

What I mean by "macros on internal commands" ?

The ability to use/reuse some defined/used pieces of data form previous
invocations or command line.

Example:

sqlite>.import 'some.txt' sometable

sqlite>...

sqlite>.output $(last_import_file_name).result.txt

sqlite>.backup main $(current_dbname)$(curr_time).bak.db


Cheers !

_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users