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
Generated on October 23, 2024 at 09:02:05 UTC.
You are viewing docs for the previous stable release, 3006.9. Switch to docs for the latest stable release, 3007.1, or to a recent doc build from the master branch.
© 2024 VMware, Inc. | Privacy Policy