Update README to Include Windows Batch File Details
This commit updates the README.md to reflect the addition of the Windows batch file in the SQL Dump Splitter project. The README now provides an overview, usage instructions, and prerequisites for both the Python script and the batch file, ensuring comprehensive guidance for users on different platforms. This update enhances the documentation to cater to a broader audience, including those who prefer using Windows batch scripts.
This commit is contained in:
parent
991beaa9f0
commit
8bd88873f3
24
README.md
24
README.md
|
@ -1,29 +1,39 @@
|
|||
# SQL Dump Splitter
|
||||
|
||||
## Overview
|
||||
This Python script is designed to split a large SQL dump file into individual files for each database. It's particularly useful for managing and organizing SQL dumps that contain multiple databases. The script reads through the SQL dump, identifies database sections based on a specific pattern, and creates new SQL files named after each database.
|
||||
This project offers tools to split a large SQL dump file into individual files for each database. It includes both a Python script and a Windows batch file to accommodate different user preferences and environments. The tools are designed to efficiently process SQL dumps, identify different databases, and create separate SQL files for each database.
|
||||
|
||||
## Features
|
||||
- **Multiple Script Options**: Python script for versatility and a Windows batch file for ease of use in Windows environments.
|
||||
- **Database Identification**: Automatically detects different databases within a SQL dump.
|
||||
- **File Creation**: Generates separate SQL files for each database.
|
||||
- **Efficiency**: Processes large dump files quickly and accurately.
|
||||
- **User-Friendly**: Easy to use, catering to both Python and non-Python users.
|
||||
|
||||
## Getting Started
|
||||
|
||||
### Prerequisites
|
||||
- Python 3.x
|
||||
- Python 3.x (for the Python script)
|
||||
- Windows OS (for the batch file)
|
||||
|
||||
### Installation
|
||||
No additional installation is required for running this script, as it uses standard Python libraries.
|
||||
No additional installation is required for running these scripts, as they use standard libraries and Windows commands.
|
||||
|
||||
### Usage
|
||||
1. Place the SQL dump file in the same directory as the script, or specify the path to the file.
|
||||
2. Run the script using Python:
|
||||
|
||||
#### Using the Python Script
|
||||
1. Place the SQL dump file in the same directory as the script or specify the file path.
|
||||
2. Run the script using Python:
|
||||
```bash
|
||||
python sql_dump_splitter.py
|
||||
```
|
||||
Using the Batch File
|
||||
Ensure the SQL dump file is in the same directory as the batch file.
|
||||
|
||||
The script will create separate SQL files for each database in the dump.
|
||||
Simply double-click the batch file or run it in a command prompt:
|
||||
```bash
|
||||
sql_dump_splitter.bat
|
||||
```
|
||||
Both scripts will create separate SQL files for each database in the dump.
|
||||
|
||||
### Contributing
|
||||
Contributions to the SQL Dump Splitter are welcome! Feel free to fork the repository and submit pull requests.
|
||||
|
|
Loading…
Reference in New Issue