INNER CODE UNIT · Python

trusted

evangelosmeklis/peepdb · peepdb/core.py:66

            trusted: bool = False) -> Any:
    print(f"peep_db called with: db_type={db_type}, host={host}, database={database}, table={table}, scientific={scientific}, trusted={trusted}")
    db = connect_to_database(db_type, host, user, password, database, trusted=trusted)
    db.connect()
    try:
        if table:
            print(f"Fetching data for table: {table}")
            result = {table: db.fetch_data(table, page, page_size)}
        else:
            print("Fetching all tables")
            tables = db.fetch_tables()
            print(f"Tables fetched: {tables}")
            result = {table: db.fetch_data(table, page, page_size) for table in tables}

        if format == 'table':
            # For 'table' output, format numeric/date fields
            for table_name in result:
                for row in result[table_name]['data']:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…