Python Firebird Backup Restore Database

import firebirdsql.fbcore from firebirdsql import services def restore_database(fbk_file: str, fdb_file: str): con = services.connect(user='SYSDBA', password='masterkey') con.restore_database(fbk_file, fdb_file, pageSize=16384, replace=True ) def backup_database(fdb_file: str, fbk_file: str): con = services.connect(user='SYSDBA', password='masterkey') con.backup_database(fdb_file, fbk_file)  

Devamını Oku »

Microsoft Power Bi Informix Jdbc Connect

Informix veritabanına Power BI üzerinden ODBC ile bağlanılabiliyor fakat ODBC bağlantısında bazı sorunlar yaşanabiliyor. örnek temp tablo create etme türkçe karakter hatası vs. Sorunu aşmak için benim kullandığım yöntem python scripti çalıştırmak oldu Levazımat Listesi: Cpython dağıtımı : https://www.python.org/downloads/ Pandas : https://pypi.org/project/pandas/ Matplotlib: https://pypi.org/project/matplotlib/ Jaydebeapi:https://pypi.org/project/JayDeBeApi/ java virtual machine: https://www.java.com/download/ie_manual.jsp informix …

Devamını Oku »

python fastapi windows deploy iis

Doğrudan fast api uygulamasını windows iis üzerinde deploy edemiyoruz biraz etrafından dolandım bende 1) IIS üzerine Application Request Routing yükleyelim https://techcommunity.microsoft.com/t5/iis-support-blog/setup-iis-with-url-rewrite-as-a-reverse-proxy-for-real-world/ba-p/846222 2) https://nssm.cc/download adresinden nssm aracı indirip c:\nssm klasörüne veya istediğiniz bir klasöre bırakın bendeki örnekte D:\Test\nssm-2.24-101-g897c7ad\win64 yolu  windows path ine ekleyelim. 3) daha yönetici cmd terminal ekranımızı açalım 4) …

Devamını Oku »

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 »