This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from requests.auth import HTTPBasicAuth | |
import json | |
def create_material_with_csrf(): | |
# Create session with authentication | |
session = requests.Session() | |
session.auth = HTTPBasicAuth('your-username', 'your-password') | |
# Step 1: Get CSRF token |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELIMITER // | |
CREATE PROCEDURE partition_package_data( | |
IN source_table_name VARCHAR(100), | |
IN records_per_partition INT | |
) | |
BEGIN | |
DECLARE done INT DEFAULT FALSE; | |
DECLARE current_partition INT DEFAULT 1; | |
DECLARE partition_table_name VARCHAR(100); |