salt.modules.inspectlib.dbhandle

class salt.modules.inspectlib.dbhandle.DBHandle(path)
class salt.modules.inspectlib.dbhandle.DBHandleBase(path)

Handle for the volatile database, which serves the purpose of caching the inspected data. This database can be destroyed or corrupted, so it should be simply re-created from scratch.

close()

Close the database connection.

flush(table)

Flush the table.

open(new=False)

Init the database, if required.

purge()

Purge whole database.

© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.inspectlib.dbhandle.html