-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from nixys/feat/32
feat(#32): Add support for DOS line endings
- Loading branch information
Showing
12 changed files
with
719 additions
and
13 deletions.
There are no files selected for viewing
106 changes: 106 additions & 0 deletions
106
modules/anonymizers/mysql/.testdata/mysql_test.dos.in.sql
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
-- MariaDB dump 10.19 Distrib 10.6.12-MariaDB, for debian-linux-gnu (x86_64) | ||
-- | ||
-- Host: 127.0.0.1 Database: db | ||
-- ------------------------------------------------------ | ||
-- Server version 8.0.32 | ||
|
||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
/*!40101 SET NAMES utf8mb4 */; | ||
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
/*!40103 SET TIME_ZONE='+00:00' */; | ||
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
|
||
-- | ||
-- Table structure for table `table1` | ||
-- | ||
|
||
DROP TABLE IF EXISTS `table1`; | ||
/*!40101 SET @saved_cs_client = @@character_set_client */; | ||
/*!40101 SET character_set_client = utf8 */; | ||
CREATE TABLE `table1` ( | ||
`id` int NOT NULL AUTO_INCREMENT, | ||
`name` varchar(50) NOT NULL, | ||
`url` varchar(255) NOT NULL, | ||
`auth_method` varchar(20) NOT NULL DEFAULT 'none', | ||
`auth_data` text NOT NULL, | ||
`username` varchar(20) NOT NULL DEFAULT '', | ||
`password` varchar(20) NOT NULL DEFAULT '', | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `id` (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb3; | ||
/*!40101 SET character_set_client = @saved_cs_client */; | ||
|
||
-- | ||
-- Dumping data for table `table1` | ||
-- | ||
|
||
LOCK TABLES `table1` WRITE; | ||
/*!40000 ALTER TABLE `table1` DISABLE KEYS */; | ||
INSERT INTO `table1` VALUES (1,'test4','https://github.com/nixys/nxs-rbac-operator0.git','none','','',''),(2,'test5','https://github.com/nixys/nxs-rbac-operator.git','none','','',''),(3,'test6','https://github.com/nixys/nxs-rbac-operator2.git','none','','',''); | ||
/*!40000 ALTER TABLE `table1` ENABLE KEYS */; | ||
UNLOCK TABLES; | ||
|
||
-- | ||
-- Table structure for table `table2` | ||
-- | ||
|
||
DROP TABLE IF EXISTS `table2`; | ||
/*!40101 SET @saved_cs_client = @@character_set_client */; | ||
/*!40101 SET character_set_client = utf8 */; | ||
CREATE TABLE `table2` ( | ||
`id` int NOT NULL AUTO_INCREMENT, | ||
`name` varchar(50) NOT NULL, | ||
`url` varchar(255) NOT NULL, | ||
`auth_method` varchar(20) NOT NULL DEFAULT 'none', | ||
`auth_data` text NOT NULL, | ||
`username` varchar(20) NOT NULL DEFAULT '', | ||
`password` varchar(20) NOT NULL DEFAULT '', | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `id` (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb3; | ||
/*!40101 SET character_set_client = @saved_cs_client */; | ||
|
||
-- | ||
-- Dumping data for table `table2` | ||
-- | ||
|
||
LOCK TABLES `table2` WRITE; | ||
/*!40000 ALTER TABLE `table2` DISABLE KEYS */; | ||
INSERT INTO `table2` VALUES (1,'test4','https://github.com/nixys/nxs-rbac-operator0.git','none','','',''),(2,'test5','https://github.com/nixys/nxs-rbac-operator.git','none','','',''),(3,'test6','https://github.com/nixys/nxs-rbac-operator2.git','none','','',''); | ||
/*!40000 ALTER TABLE `table2` ENABLE KEYS */; | ||
UNLOCK TABLES; | ||
|
||
-- | ||
-- Table structure for table `table3` | ||
-- | ||
|
||
DROP TABLE IF EXISTS `table3`; | ||
/*!40101 SET @saved_cs_client = @@character_set_client */; | ||
/*!40101 SET character_set_client = utf8 */; | ||
CREATE TABLE `table3` ( | ||
`id` int NOT NULL AUTO_INCREMENT, | ||
`name` varchar(50) NOT NULL, | ||
`url` varchar(255) NOT NULL, | ||
`auth_method` varchar(20) NOT NULL DEFAULT 'none', | ||
`auth_data` text NOT NULL, | ||
`username` varchar(20) NOT NULL DEFAULT '', | ||
`password` varchar(20) NOT NULL DEFAULT '', | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `id` (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb3; | ||
/*!40101 SET character_set_client = @saved_cs_client */; | ||
|
||
-- | ||
-- Dumping data for table `table3` | ||
-- | ||
|
||
LOCK TABLES `table3` WRITE; | ||
/*!40000 ALTER TABLE `table3` DISABLE KEYS */; | ||
INSERT INTO `table3` VALUES (1,'test4','https://github.com/nixys/nxs-rbac-operator0.git','none','','',''),(2,'test5','https://github.com/nixys/nxs-rbac-operator.git','none','','',''),(3,'test6','https://github.com/nixys/nxs-rbac-operator2.git','none','','',''); | ||
/*!40000 ALTER TABLE `table3` ENABLE KEYS */; | ||
UNLOCK TABLES; |
106 changes: 106 additions & 0 deletions
106
modules/anonymizers/mysql/.testdata/mysql_test.dos.out.sql
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
-- MariaDB dump 10.19 Distrib 10.6.12-MariaDB, for debian-linux-gnu (x86_64) | ||
-- | ||
-- Host: 127.0.0.1 Database: db | ||
-- ------------------------------------------------------ | ||
-- Server version 8.0.32 | ||
|
||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
/*!40101 SET NAMES utf8mb4 */; | ||
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
/*!40103 SET TIME_ZONE='+00:00' */; | ||
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
|
||
-- | ||
-- Table structure for table `table1` | ||
-- | ||
|
||
DROP TABLE IF EXISTS `table1`; | ||
/*!40101 SET @saved_cs_client = @@character_set_client */; | ||
/*!40101 SET character_set_client = utf8 */; | ||
CREATE TABLE `table1` ( | ||
`id` int NOT NULL AUTO_INCREMENT, | ||
`name` varchar(50) NOT NULL, | ||
`url` varchar(255) NOT NULL, | ||
`auth_method` varchar(20) NOT NULL DEFAULT 'none', | ||
`auth_data` text NOT NULL, | ||
`username` varchar(20) NOT NULL DEFAULT '', | ||
`password` varchar(20) NOT NULL DEFAULT '', | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `id` (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb3; | ||
/*!40101 SET character_set_client = @saved_cs_client */; | ||
|
||
-- | ||
-- Dumping data for table `table1` | ||
-- | ||
|
||
LOCK TABLES `table1` WRITE; | ||
/*!40000 ALTER TABLE `table1` DISABLE KEYS */; | ||
INSERT INTO `table1` VALUES (1,'test4','https://github.com/nixys/nxs-rbac-operator0.git','none','','',''),(3,'test6','https://github.com/nixys/nxs-rbac-operator2.git','none','','',''); | ||
/*!40000 ALTER TABLE `table1` ENABLE KEYS */; | ||
UNLOCK TABLES; | ||
|
||
-- | ||
-- Table structure for table `table2` | ||
-- | ||
|
||
DROP TABLE IF EXISTS `table2`; | ||
/*!40101 SET @saved_cs_client = @@character_set_client */; | ||
/*!40101 SET character_set_client = utf8 */; | ||
CREATE TABLE `table2` ( | ||
`id` int NOT NULL AUTO_INCREMENT, | ||
`name` varchar(50) NOT NULL, | ||
`url` varchar(255) NOT NULL, | ||
`auth_method` varchar(20) NOT NULL DEFAULT 'none', | ||
`auth_data` text NOT NULL, | ||
`username` varchar(20) NOT NULL DEFAULT '', | ||
`password` varchar(20) NOT NULL DEFAULT '', | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `id` (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb3; | ||
/*!40101 SET character_set_client = @saved_cs_client */; | ||
|
||
-- | ||
-- Dumping data for table `table2` | ||
-- | ||
|
||
LOCK TABLES `table2` WRITE; | ||
/*!40000 ALTER TABLE `table2` DISABLE KEYS */; | ||
|
||
/*!40000 ALTER TABLE `table2` ENABLE KEYS */; | ||
UNLOCK TABLES; | ||
|
||
-- | ||
-- Table structure for table `table3` | ||
-- | ||
|
||
DROP TABLE IF EXISTS `table3`; | ||
/*!40101 SET @saved_cs_client = @@character_set_client */; | ||
/*!40101 SET character_set_client = utf8 */; | ||
CREATE TABLE `table3` ( | ||
`id` int NOT NULL AUTO_INCREMENT, | ||
`name` varchar(50) NOT NULL, | ||
`url` varchar(255) NOT NULL, | ||
`auth_method` varchar(20) NOT NULL DEFAULT 'none', | ||
`auth_data` text NOT NULL, | ||
`username` varchar(20) NOT NULL DEFAULT '', | ||
`password` varchar(20) NOT NULL DEFAULT '', | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `id` (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb3; | ||
/*!40101 SET character_set_client = @saved_cs_client */; | ||
|
||
-- | ||
-- Dumping data for table `table3` | ||
-- | ||
|
||
LOCK TABLES `table3` WRITE; | ||
/*!40000 ALTER TABLE `table3` DISABLE KEYS */; | ||
INSERT INTO `table3` VALUES (1,'test4','https://github.com/nixys/nxs-rbac-operator0.git','none','','',''),(2,'test5','https://github.com/nixys/nxs-rbac-operator.git','none','','',''),(3,'test6','https://github.com/nixys/nxs-rbac-operator2.git','none','','',''); | ||
/*!40000 ALTER TABLE `table3` ENABLE KEYS */; | ||
UNLOCK TABLES; |
File renamed without changes.
File renamed without changes.
This file contains 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
This file contains 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
Oops, something went wrong.