File: //opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/orm/__pycache__/identity.cpython-37.pyc
B
��4];( � @ sl d dl Z ddlmZ ddlmZ ddlmZ ddlmZ G dd� de�ZG d d
� d
e�Z G dd� de�Z
dS )
� N� )�
attributes)�util� )�excc @ s� e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� Zdd� Zd
d� Z dd� Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Zd(dd�Zd d!� Zd"d#� Zd$d%� Zd&d'� ZdS ))�IdentityMapc C s i | _ t� | _t�| �| _d S )N)�_dict�set� _modified�weakref�ref�_wr)�self� r �J/opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/orm/identity.py�__init__ s zIdentityMap.__init__c C s
| j �� S )N)r �keys)r r r r r s zIdentityMap.keysc C s
t � �d S )N)�NotImplementedError)r �stater r r �replace s zIdentityMap.replacec C s
t � �d S )N)r )r r r r r �add s zIdentityMap.addc C s | � |� dS )zUoptional inlined form of add() which can assume item isn't present
in the mapN)r )r r �keyr r r �_add_unpresent s zIdentityMap._add_unpresentc C s t d��d S )Nz%IdentityMap uses add() to insert data)r )r �dict_r r r �update$ s zIdentityMap.updatec C s t d��d S )Nz(IdentityMap uses remove() to remove data)r )r r r r �clear'