#NEWLINE# def get_storage_engine( self , cursor , table_name ) : #NEWLINE# #INDENT# "\n        Retrieves the storage engine for a given table. Returns the default\n        storage engine if the table doesn't exist.\n        " #NEWLINE# cursor . execute ( 'SELECT engine FROM information_schema.tables WHERE table_name = %s' , [ table_name ] ) #NEWLINE# result = cursor . fetchone ( ) #NEWLINE# if ( not result ) : #NEWLINE# #INDENT# return self . connection . features . _mysql_storage_engine #NEWLINE# #UNINDENT# return result [ 0 ]