#NEWLINE# def _test_dbapi_raw( n , make_objects ) : #NEWLINE# #INDENT# compiled = Customer . __table__ . select ( ) . limit ( n ) . compile ( dialect = engine . dialect , compile_kwargs = { #NEWLINE# #INDENT# 'literal_binds' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# if make_objects : #NEWLINE# #INDENT# class SimpleCustomer ( object ) : #NEWLINE# #INDENT# def __init__( self , id , name , description ) : #NEWLINE# #INDENT# self . id = id #NEWLINE# self . name = name #NEWLINE# self . description = description #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# sql = str ( compiled ) #NEWLINE# conn = engine . raw_connection ( ) #NEWLINE# cursor = conn . cursor ( ) #NEWLINE# cursor . execute ( sql ) #NEWLINE# if make_objects : #NEWLINE# #INDENT# for row in cursor . fetchall ( ) : #NEWLINE# #INDENT# customer = SimpleCustomer ( id = row [ 0 ] , name = compiled [ 1 ] , description = row [ 2 ] ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# for row in cursor . fetchall ( ) : #NEWLINE# #INDENT# data = ( row [ 0 ] , row [ 1 ] , row [ 2 ] ) #NEWLINE# #UNINDENT# #UNINDENT# conn . close ( )