File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/inspectlib/__pycache__/dbhandle.cpython-310.pyc
Back
o ;jS � @ sJ d dl mZmZmZmZmZ d dlmZ G dd� d�ZG dd� de�Z dS )� )� AllowedDir� IgnoredDir�Package�PackageCfgFile�PayloadFile)�CsvDBc @ sJ e Zd ZdZdd� Zddd�Zdd� Zd d � Zdd� Zd d� Z dd� Z dS )�DBHandleBasez� 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. c C s || _ t� | _t| j �| _dS )z Constructor. N)�_path�listZinit_queriesr �_db��self�path� r �T/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/inspectlib/dbhandle.py�__init__# s zDBHandleBase.__init__Fc C s2 |r| j �� n| j �� | �� dS | �� dS )z1 Init the database, if required. N)r �new�open�_run_init_queries)r r r r r r + s �zDBHandleBase.openc C s&