postgresql find dependent object

https://stackoverflow.com/questions/4462908/find-dependent-objects-for-a-table-or-view   SELECT dependent_ns.nspname as dependent_schema , dependent_view.relname as dependent_view , source_ns.nspname as source_schema , source_table.relname as source_table , pg_attribute.attname as column_name FROM pg_depend JOIN pg_rewrite ON pg_depend.objid = pg_rewrite.oid JOIN pg_class as dependent_view ON pg_rewrite.ev_class = dependent_view.oid JOIN pg_class as source_table ON pg_depend.refobjid = source_table.oid JOIN pg_attribute ON pg_depend.refobjid …

Devamını Oku »

python xls to xlsx converter windows

def get_list_files_in_folders(path: str, file_ext: str = ''): """ directory deki ve sub directory deki dosyalarin listesini doner """ tmp_list = [] for root, dirs, files in os.walk(path): for file in files: if file.endswith(file_ext): tmp_list.append(os.path.join(root, file)) # print(os.path.join(root, file)) return tmp_list def get_file_name_from_path(path: str): return os.path.basename(path) import os import win32com.client as …

Devamını Oku »