data only dump

This commit is contained in:
Marc Delisle
2001-06-07 18:05:59 +00:00
parent 563da00428
commit b736e4df76
25 changed files with 42 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ $Source$
2001-06-07 Marc Delisle <lem9@users.sourceforge.net>
* modify/implement Steve Alberty's patch for complete table dump
* implement Alessandro Astarita's patch for data only dump
2001-06-06 Armel Fauveau <armel.fauveau@globalis-ms.com>
* patch bookmark section in sql.php3 (bug #430628)

View File

@@ -122,6 +122,12 @@ if($cfgBookmark['db'] && $cfgBookmark['table'])
<input type="checkbox" name="showcolumns" value="yes"><?php echo $strCompleteInserts; ?>
</td>
</tr>
<tr>
<td>
<input type="radio" name="what" value="dataonly">
<?php echo $strDataOnly; ?>
</td>
</tr>
</table>
<input type="hidden" name="server" value="<?php echo $server;?>">
<input type="hidden" name="lang" value="<?php echo $lang;?>">

View File

@@ -82,6 +82,8 @@ else
{
$table = mysql_tablename($tables, $i);
if($what != "dataonly")
{
print $crlf;
print "# --------------------------------------------------------$crlf";
print "#$crlf";
@@ -90,8 +92,9 @@ else
print $crlf;
echo get_table_def($db, $table, $crlf).";$crlf$crlf";
}
if($what == "data")
if(($what == "data") || ($what == "dataonly"))
{
print "#$crlf";
print "# $strDumpingData '$table'$crlf";

View File

@@ -206,4 +206,5 @@ $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
$strDataOnly=" Data only "; //to translate
?>

View File

@@ -205,4 +205,5 @@ $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
$strDataOnly=" Data only "; //to translate
?>

View File

@@ -185,4 +185,5 @@ $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
$strDataOnly=" Data only "; //to translate
?>

View File

@@ -190,4 +190,5 @@ $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
$strDataOnly=" Data only "; //to translate
?>

View File

@@ -190,4 +190,5 @@ $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
$strDataOnly=" Data only "; //to translate
?>

View File

@@ -203,4 +203,5 @@ $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
$strDataOnly=" Data only "; //to translate
?>

View File

@@ -206,4 +206,5 @@ $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
$strDataOnly=" Data only "; //to translate
?>

View File

@@ -193,4 +193,5 @@ $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
$strDataOnly=" Data only "; //to translate
?>

View File

@@ -218,4 +218,5 @@ $strAnyColumn = "Any Column";
$strColumnEmpty = "The columns names are empty!";
$strInsertAsNewRow="Insert as new row";
$strTableMaintenance="Table maintenance";
$strDataOnly="Data only";
?>

View File

@@ -235,4 +235,5 @@ $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow="Ins<EFBFBD>rer ce nouvel enregistrement";
$strTableMaintenance="Maintenance de la table";
$strDataOnly="Donn<EFBFBD>es seulement";
?>

View File

@@ -200,4 +200,5 @@ $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
$strDataOnly=" Data only "; //to translate
?>

View File

@@ -204,4 +204,5 @@ $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
$strDataOnly=" Data only "; //to translate
?>

View File

@@ -185,4 +185,5 @@ $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
$strDataOnly=" Data only "; //to translate
?>

View File

@@ -195,4 +195,5 @@ $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
$strDataOnly=" Data only "; //to translate
?>

View File

@@ -192,4 +192,5 @@ $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
$strDataOnly=" Data only "; //to translate
?>

View File

@@ -202,4 +202,5 @@ $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
$strDataOnly=" Data only "; //to translate
?>

View File

@@ -202,4 +202,5 @@ $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
$strDataOnly=" Data only "; //to translate
?>

View File

@@ -204,4 +204,5 @@ $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
$strDataOnly=" Data only "; //to translate
?>

View File

@@ -216,4 +216,5 @@ $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
$strDataOnly=" Data only "; //to translate
?>

View File

@@ -216,4 +216,5 @@ $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
$strDataOnly=" Data only "; //to translate
?>

View File

@@ -75,14 +75,18 @@ if($what != "csv")
if(!empty($cfgServer['port']))
print ":" . $cfgServer['port'];
print " $strDatabase: $db$crlf";
if($what != "dataonly")
{
print "# --------------------------------------------------------$crlf";
print "$crlf#$crlf";
print "# $strTableStructure '$table'$crlf";
print "#$crlf$crlf";
print get_table_def($db, $table, $crlf).";$crlf";
}
if($what == "data")
if(($what == "data") || ($what == "dataonly"))
{
print "$crlf#$crlf";
print "# $strDumpingData '$table'$crlf";

View File

@@ -250,6 +250,12 @@ echo " </select>\n";
<input type="checkbox" name="showcolumns" value="yes"><?php echo $strCompleteInserts; ?>
</td>
</tr>
<tr>
<td>
<input type="radio" name="what" value="dataonly">
<?php echo $strDataOnly; ?>
</td>
</tr>
<tr>
<td>
<input type="radio" name="what" value="csv"><?php echo $strStrucCSV;?>