#NEWLINE# @ expose ( '/db/' ) #NEWLINE# def db( self ) : #NEWLINE# #INDENT# db = request . args . get ( 'db' ) #NEWLINE# m = HiveMetastoreHook ( METASTORE_CONN_ID ) #NEWLINE# tables = sorted ( m . get_tables ( db = db ) , key = ( lambda x : x . tableName ) ) #NEWLINE# return self . render ( 'metastore_browser/db.html' , tables = tables , db = db )