Support for SQLite3
Retrieve data from an sqlite3 db (returns all rows, be careful!)
CLI Example:
salt '*' sqlite3.fetch /root/test.db 'SELECT * FROM test;'
Show all indices in the database, for people with poor spelling skills
CLI Example:
salt '*' sqlite3.indexes /root/test.db
Show all indices in the database
CLI Example:
salt '*' sqlite3.indices /root/test.db
Issue an SQL query to sqlite3 (with no return data), usually used to modify the database in some way (insert, delete, create, etc)
CLI Example:
salt '*' sqlite3.modify /root/test.db 'CREATE TABLE test(id INT, testdata TEXT);'
Return version of sqlite
CLI Example:
salt '*' sqlite3.sqlite_version
Show all tables in the database
CLI Example:
salt '*' sqlite3.tables /root/test.db
Return version of pysqlite
CLI Example:
salt '*' sqlite3.version