Mysqldump Provider
Draft. This guide has not been reviewed and tested yet.
In this guide, we will show you the simple steps to generate the final CSS file by dumping the MySQL database.
This is a custom provider that will scan the design payload by dumping the MySQL database.
Use at your own risk.
Data will be transferred to your browser to be scanned by the compiler.
Use at your own risk.
Step 1: Using a library to dump the MySQL database
Section titled Step 1: Using a library to dump the MySQL databaseThe PHP script used in this step is made by 3rd-party developers and is not maintained by Yabe Siul.
Use at your own risk.
Copy the code from this link above and paste it into the mysqldump.php
file in your theme’s directory.
Step 2: Adding the Compiler’s scanner
Section titled Step 2: Adding the Compiler’s scannerAdd the following code to your theme’s functions.php
file.
To tell Yabe Siul’s compiler to scan from dumping the MySQL database, you need to add a custom scanner to the compiler. This scanner will be responsible for dumping your MySQL database and returning the data to the compiler.
Step 3: Adding the Compiler’s scanner callback
Section titled Step 3: Adding the Compiler’s scanner callbackNow that we have added the scanner, we need to define how the scanner will dump the MySQL database and return the data to the compiler.
You can change the include-tables
and exclude-tables
to include or exclude tables from the dump.
Now that we have added the scanner and the scanner callback, we can now generate the final CSS file from the MySQL database dump.