<s> from . resolver import resolver <EOL> from django . utils . importlib import import_module <EOL> def __repr__ ( self ) : <EOL> return '<STR_LIT>' % ( self . alias , self . col , self . field . name , <EOL> self . field . model . __name__ ) <EOL> from django . db . models . sql . where import Constraint <EOL> Constraint . __repr__ = __repr__ <EOL> class BaseCompiler ( object ) : <EOL> def convert_filters ( self ) : <EOL> resolver . convert_filters ( self . query ) <EOL> class SQLCompiler ( BaseCompiler ) : <EOL> def execute_sql ( self , * args , ** kwargs ) : <EOL> self . convert_filters ( ) <EOL> return super ( SQLCompiler , self ) . execute_sql ( * args , ** kwargs ) <EOL> def results_iter ( self ) : <EOL> self . convert_filters ( ) <EOL> return super ( SQLCompiler , self ) . results_iter ( ) <EOL> def has_results ( self ) : <EOL> self . convert_filters ( ) <EOL> return super ( SQLCompiler , self ) . has_results ( ) <EOL> class SQLInsertCompiler ( BaseCompiler ) : <EOL> def execute_sql ( self , return_id = False ) : <EOL> resolver . convert_insert_query ( self . query ) <EOL> return super ( SQLInsertCompiler , self ) . execute_sql ( return_id = return_id ) <EOL> class SQLUpdateCompiler ( BaseCompiler ) : <EOL> pass <EOL> class SQLDeleteCompiler ( BaseCompiler ) : <EOL> pass </s>
