#NEWLINE# @ reflection . cache #NEWLINE# @ _db_plus_owner #NEWLINE# def get_view_definition( self , connection , viewname , dbname , owner , schema , **kw ) : #NEWLINE# #INDENT# rp = connection . execute ( sql . text ( 'select definition from sys.sql_modules as mod, sys.views as views, sys.schemas as sch where mod.object_id=views.object_id and views.schema_id=sch.schema_id and views.name=:viewname and sch.name=:schname' , bindparams = [ sql . bindparam ( 'viewname' , viewname , sqltypes . String ( convert_unicode = True ) ) , sql . bindparam ( 'schname' , owner , sqltypes . String ( convert_unicode = True ) ) ] ) ) #NEWLINE# if rp : #NEWLINE# #INDENT# view_def = rp . scalar ( ) #NEWLINE# return view_def