master
ブランチ master
LittleBeast / src / Std / Test / Helper / convert.json
8 KB、5行 生 Blame 履歴
1{
2 "mysqldump": "-- MySQL dump 10.13 Distrib 8.0.36, for Linux (x86_64)\n--\n-- Host: localhost Database: shop\n-- ------------------------------------------------------\n-- Server version\t8.0.36\n\n/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;\n/*!40101 SET NAMES utf8mb4 */;\n/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;\n/*!40103 SET TIME_ZONE='+00:00' */;\n/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;\n\n--\n-- Table structure for table `customers`\n--\n\nDROP TABLE IF EXISTS `customers`;\n/*!40101 SET @saved_cs_client = @@character_set_client */;\n/*!50503 SET character_set_client = utf8mb4 */;\nCREATE TABLE `customers` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,\n `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n `active` tinyint(1) NOT NULL DEFAULT '1',\n `level` enum('free','pro') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'free',\n `balance` decimal(12,2) DEFAULT '0.00',\n `photo` mediumblob,\n `settings` json DEFAULT NULL,\n `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `updated_at` datetime(3) DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3),\n `note` text COLLATE utf8mb4_unicode_ci COMMENT 'メモ',\n PRIMARY KEY (`id`),\n UNIQUE KEY `customers_email_unique` (`email`),\n KEY `idx_name_level` (`name`(20),`level`),\n FULLTEXT KEY `ft_note` (`note`)\n) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;\n/*!40101 SET character_set_client = @saved_cs_client */;\n\n--\n-- Dumping data for table `customers`\n--\n\nLOCK TABLES `customers` WRITE;\n/*!40000 ALTER TABLE `customers` DISABLE KEYS */;\nINSERT INTO `customers` VALUES (1,'諏訪子','suwako@example.com',1,'pro',1234.50,_binary '\\0\\\\\\'\\\"\\n\\r\\Z','{\\\"a\\\": [1, 2]}','2026-01-02 03:04:05','2026-01-02 03:04:05.123','it\\'s; a \\\"test\\\"\\\\ -- not a comment'),(2,'神奈子',NULL,0,'free',-0.01,0x00FF10,NULL,NULL,NULL,'行1\\n行2\\ttab'),(3,'O\\'Brien','ob@example.com',1,'free',0.00,NULL,'null','2026-11-12 00:00:00',NULL,'/* x */ # y');\n/*!40000 ALTER TABLE `customers` ENABLE KEYS */;\nUNLOCK TABLES;\n\nDROP TABLE IF EXISTS `orders`;\nCREATE TABLE `orders` (\n `id` bigint NOT NULL AUTO_INCREMENT,\n `customer_id` int unsigned NOT NULL,\n `total` double NOT NULL DEFAULT '0',\n `status` varchar(20) NOT NULL DEFAULT 'new',\n `ordered` date DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `orders_customer_id_foreign` (`customer_id`),\n CONSTRAINT `orders_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE\n) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;\n\nLOCK TABLES `orders` WRITE;\nINSERT INTO `orders` VALUES (1,1,99.5,'paid','2026-01-03'),(2,3,1e3,'new','0000-00-00');\nUNLOCK TABLES;\n\n--\n-- Temporary view structure for view `v_customers`\n--\n/*!50001 DROP VIEW IF EXISTS `v_customers`*/;\n/*!50001 CREATE VIEW `v_customers` AS SELECT 1 AS `id`*/;\n\nDELIMITER ;;\n/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `trg` BEFORE INSERT ON `orders` FOR EACH ROW BEGIN\n SET NEW.status = 'new';\nEND */;;\nDELIMITER ;\n\n/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;\n-- Dump completed on 2026-11-12 0:00:00\n",
3 "pgdump": "--\n-- PostgreSQL database dump\n--\n\n\\restrict IGblw7AgTAaQWGRowGi8gEvwjav0A41Z4KbrP31pzIodfRyIadXg22o2ex4YurD\n\n-- Dumped from database version 16.15 (Ubuntu 16.15-0ubuntu0.24.04.1)\n-- Dumped by pg_dump version 16.15 (Ubuntu 16.15-0ubuntu0.24.04.1)\n\nSET statement_timeout = 0;\nSET lock_timeout = 0;\nSET idle_in_transaction_session_timeout = 0;\nSET client_encoding = 'UTF8';\nSET standard_conforming_strings = on;\nSELECT pg_catalog.set_config('search_path', '', false);\nSET check_function_bodies = false;\nSET xmloption = content;\nSET client_min_messages = warning;\nSET row_security = off;\n\nSET default_tablespace = '';\n\nSET default_table_access_method = heap;\n\n--\n-- Name: items; Type: TABLE; Schema: public; Owner: -\n--\n\nCREATE TABLE public.items (\n id integer NOT NULL,\n name character varying(50) NOT NULL,\n price numeric(8,2) DEFAULT 0,\n flags boolean DEFAULT false,\n data bytea,\n meta jsonb,\n labels text[],\n at timestamp with time zone DEFAULT now(),\n day date,\n uid uuid,\n note text\n);\n\n\n--\n-- Name: items_id_seq; Type: SEQUENCE; Schema: public; Owner: -\n--\n\nCREATE SEQUENCE public.items_id_seq\n AS integer\n START WITH 1\n INCREMENT BY 1\n NO MINVALUE\n NO MAXVALUE\n CACHE 1;\n\n\n--\n-- Name: items_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -\n--\n\nALTER SEQUENCE public.items_id_seq OWNED BY public.items.id;\n\n\n--\n-- Name: tags; Type: TABLE; Schema: public; Owner: -\n--\n\nCREATE TABLE public.tags (\n item_id integer NOT NULL,\n tag text NOT NULL,\n n bigint NOT NULL\n);\n\n\n--\n-- Name: tags_n_seq; Type: SEQUENCE; Schema: public; Owner: -\n--\n\nALTER TABLE public.tags ALTER COLUMN n ADD GENERATED BY DEFAULT AS IDENTITY (\n SEQUENCE NAME public.tags_n_seq\n START WITH 1\n INCREMENT BY 1\n NO MINVALUE\n NO MAXVALUE\n CACHE 1\n);\n\n\n--\n-- Name: items id; Type: DEFAULT; Schema: public; Owner: -\n--\n\nALTER TABLE ONLY public.items ALTER COLUMN id SET DEFAULT nextval('public.items_id_seq'::regclass);\n\n\n--\n-- Data for Name: items; Type: TABLE DATA; Schema: public; Owner: -\n--\n\nCOPY public.items (id, name, price, flags, data, meta, labels, at, day, uid, note) FROM stdin;\n1\tりんご\t120.50\tt\t\\\\x00ff0a5c\t{\"n\": [1, 2], \"色\": \"赤\"}\t{a,\"b c\",NULL,\"d\\\\\"e\"}\t2026-01-01 18:04:05.5+00\t2026-01-02\ta0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11\t行1\\n行2\\tタブ\\\\\n2\tみかん\t\\N\t\\N\t\\N\t\\N\t{}\t2026-11-12 00:00:00+00\t\\N\t\\N\t\\N\n3\tit's\t-0.01\tf\t\\\\x\tnull\t\\N\t2000-02-29 12:00:00+00\t2000-02-29\t\\N\t\n\\.\n\n\n--\n-- Data for Name: tags; Type: TABLE DATA; Schema: public; Owner: -\n--\n\nCOPY public.tags (item_id, tag, n) FROM stdin;\n1\t果物\t1\n1\t赤\t2\n2\t果物\t3\n\\.\n\n\n--\n-- Name: items_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -\n--\n\nSELECT pg_catalog.setval('public.items_id_seq', 3, true);\n\n\n--\n-- Name: tags_n_seq; Type: SEQUENCE SET; Schema: public; Owner: -\n--\n\nSELECT pg_catalog.setval('public.tags_n_seq', 3, true);\n\n\n--\n-- Name: items items_pkey; Type: CONSTRAINT; Schema: public; Owner: -\n--\n\nALTER TABLE ONLY public.items\n ADD CONSTRAINT items_pkey PRIMARY KEY (id);\n\n\n--\n-- Name: tags tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -\n--\n\nALTER TABLE ONLY public.tags\n ADD CONSTRAINT tags_pkey PRIMARY KEY (item_id, tag);\n\n\n--\n-- Name: items_day; Type: INDEX; Schema: public; Owner: -\n--\n\nCREATE INDEX items_day ON public.items USING btree (day, price);\n\n\n--\n-- Name: items_name; Type: INDEX; Schema: public; Owner: -\n--\n\nCREATE UNIQUE INDEX items_name ON public.items USING btree (lower((name)::text));\n\n\n--\n-- Name: tags tags_item_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -\n--\n\nALTER TABLE ONLY public.tags\n ADD CONSTRAINT tags_item_id_fkey FOREIGN KEY (item_id) REFERENCES public.items(id);\n\n\n--\n-- PostgreSQL database dump complete\n--\n\n\\unrestrict IGblw7AgTAaQWGRowGi8gEvwjav0A41Z4KbrP31pzIodfRyIadXg22o2ex4YurD\n\n",
4 "sqlitedump": "PRAGMA foreign_keys=OFF;\nBEGIN TRANSACTION;\nCREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, b BLOB, r REAL, n);\nINSERT INTO users VALUES(1,'a''b',X'00ff',1.5,NULL);\nINSERT INTO users VALUES(2,replace('x\\ny','\\n',char(10)),NULL,-2.0e-5,'z');\nINSERT INTO users VALUES(3,replace(replace('a\\r\\nb','\\r',char(13)),'\\n',char(10)),NULL,NULL,1);\nDELETE FROM sqlite_sequence;\nINSERT INTO sqlite_sequence VALUES('users',3);\nCREATE TABLE IF NOT EXISTS \"q t\"(x INT, y);\nINSERT INTO \"q t\" VALUES(1,2);\nCREATE INDEX users_name ON users(name);\nCOMMIT;\nCREATE TABLE u2 (s TEXT);\nINSERT INTO u2 VALUES(unistr('a\\u000ab\\\\c\\+01F600'));\nINSERT INTO u2 VALUES('x' || char(9) || 'y');\n"
5}