good morning!!!!

Skip to content
Snippets Groups Projects
Commit db9f10a0 authored by José Carlos Nieto's avatar José Carlos Nieto
Browse files

Adding test dumps.

parent a3fff9d5
No related branches found
No related tags found
No related merge requests found
-- MySQL dump 10.13 Distrib 5.5.25, for Linux (x86_64) -- MySQL dump 10.13 Distrib 5.5.27, for Linux (x86_64)
-- --
-- Host: 10.0.0.11 Database: gotest -- Host: localhost Database: gotest
-- ------------------------------------------------------ -- ------------------------------------------------------
-- Server version 5.1.63-0+squeeze1-log -- Server version 5.5.27-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
...@@ -27,9 +27,60 @@ CREATE TABLE `children` ( ...@@ -27,9 +27,60 @@ CREATE TABLE `children` (
`parent_id` bigint(20) unsigned NOT NULL, `parent_id` bigint(20) unsigned NOT NULL,
`name` varchar(60) DEFAULT NULL, `name` varchar(60) DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=31 DEFAULT CHARSET=latin1; ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `children`
--
LOCK TABLES `children` WRITE;
/*!40000 ALTER TABLE `children` DISABLE KEYS */;
/*!40000 ALTER TABLE `children` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `data_types`
--
DROP TABLE IF EXISTS `data_types`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `data_types` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`_uint` int(10) unsigned DEFAULT NULL,
`_uintptr` int(10) unsigned DEFAULT NULL,
`_uint8` int(10) unsigned DEFAULT NULL,
`_uint16` int(10) unsigned DEFAULT NULL,
`_uint32` int(10) unsigned DEFAULT NULL,
`_uint64` bigint(20) unsigned DEFAULT NULL,
`_int` int(11) DEFAULT NULL,
`_int8` int(11) DEFAULT NULL,
`_int16` int(11) DEFAULT NULL,
`_int32` int(11) DEFAULT NULL,
`_int64` bigint(20) DEFAULT NULL,
`_float32` decimal(10,6) DEFAULT NULL,
`_float64` decimal(10,6) DEFAULT NULL,
`_byte` tinyint(4) DEFAULT NULL,
`_rune` tinyint(4) DEFAULT NULL,
`_bool` tinyint(4) DEFAULT NULL,
`_string` varchar(255) DEFAULT NULL,
`_date` datetime DEFAULT NULL,
`_bytea` varchar(255) DEFAULT NULL,
`_time` time DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `data_types`
--
LOCK TABLES `data_types` WRITE;
/*!40000 ALTER TABLE `data_types` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_types` ENABLE KEYS */;
UNLOCK TABLES;
-- --
-- Table structure for table `people` -- Table structure for table `people`
-- --
...@@ -42,9 +93,18 @@ CREATE TABLE `people` ( ...@@ -42,9 +93,18 @@ CREATE TABLE `people` (
`place_code_id` bigint(20) unsigned NOT NULL, `place_code_id` bigint(20) unsigned NOT NULL,
`name` varchar(60) DEFAULT NULL, `name` varchar(60) DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `people`
--
LOCK TABLES `people` WRITE;
/*!40000 ALTER TABLE `people` DISABLE KEYS */;
/*!40000 ALTER TABLE `people` ENABLE KEYS */;
UNLOCK TABLES;
-- --
-- Table structure for table `places` -- Table structure for table `places`
-- --
...@@ -57,9 +117,18 @@ CREATE TABLE `places` ( ...@@ -57,9 +117,18 @@ CREATE TABLE `places` (
`code_id` bigint(20) DEFAULT NULL, `code_id` bigint(20) DEFAULT NULL,
`name` varchar(60) DEFAULT NULL, `name` varchar(60) DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1; ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `places`
--
LOCK TABLES `places` WRITE;
/*!40000 ALTER TABLE `places` DISABLE KEYS */;
/*!40000 ALTER TABLE `places` ENABLE KEYS */;
UNLOCK TABLES;
-- --
-- Table structure for table `visits` -- Table structure for table `visits`
-- --
...@@ -72,8 +141,17 @@ CREATE TABLE `visits` ( ...@@ -72,8 +141,17 @@ CREATE TABLE `visits` (
`place_id` bigint(20) DEFAULT NULL, `place_id` bigint(20) DEFAULT NULL,
`person_id` bigint(20) DEFAULT NULL, `person_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=19 DEFAULT CHARSET=latin1; ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `visits`
--
LOCK TABLES `visits` WRITE;
/*!40000 ALTER TABLE `visits` DISABLE KEYS */;
/*!40000 ALTER TABLE `visits` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
...@@ -84,4 +162,4 @@ CREATE TABLE `visits` ( ...@@ -84,4 +162,4 @@ CREATE TABLE `visits` (
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2012-07-01 16:24:15 -- Dump completed on 2012-09-19 20:01:32
...@@ -49,6 +49,58 @@ ALTER TABLE public.children_id_seq OWNER TO gouser; ...@@ -49,6 +49,58 @@ ALTER TABLE public.children_id_seq OWNER TO gouser;
ALTER SEQUENCE children_id_seq OWNED BY children.id; ALTER SEQUENCE children_id_seq OWNED BY children.id;
--
-- Name: data_types; Type: TABLE; Schema: public; Owner: gouser; Tablespace:
--
CREATE TABLE data_types (
id integer NOT NULL,
_uint integer,
_uint8 integer,
_uint16 integer,
_uint32 integer,
_uint64 integer,
_int integer,
_int8 integer,
_int16 integer,
_int32 integer,
_int64 integer,
_float32 numeric(10,6),
_float64 numeric(10,6),
_byte bit(1),
_rune bit(1),
_bool boolean,
_string text,
_date timestamp without time zone,
_bytea character varying,
_time time without time zone,
_uintptr integer
);
ALTER TABLE public.data_types OWNER TO gouser;
--
-- Name: data_types_id_seq; Type: SEQUENCE; Schema: public; Owner: gouser
--
CREATE SEQUENCE data_types_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.data_types_id_seq OWNER TO gouser;
--
-- Name: data_types_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: gouser
--
ALTER SEQUENCE data_types_id_seq OWNED BY data_types.id;
-- --
-- Name: people; Type: TABLE; Schema: public; Owner: gouser; Tablespace: -- Name: people; Type: TABLE; Schema: public; Owner: gouser; Tablespace:
-- --
...@@ -158,6 +210,13 @@ ALTER SEQUENCE visits_id_seq OWNED BY visits.id; ...@@ -158,6 +210,13 @@ ALTER SEQUENCE visits_id_seq OWNED BY visits.id;
ALTER TABLE ONLY children ALTER COLUMN id SET DEFAULT nextval('children_id_seq'::regclass); ALTER TABLE ONLY children ALTER COLUMN id SET DEFAULT nextval('children_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: gouser
--
ALTER TABLE ONLY data_types ALTER COLUMN id SET DEFAULT nextval('data_types_id_seq'::regclass);
-- --
-- Name: id; Type: DEFAULT; Schema: public; Owner: gouser -- Name: id; Type: DEFAULT; Schema: public; Owner: gouser
-- --
...@@ -187,6 +246,14 @@ ALTER TABLE ONLY children ...@@ -187,6 +246,14 @@ ALTER TABLE ONLY children
ADD CONSTRAINT children_pkey PRIMARY KEY (id); ADD CONSTRAINT children_pkey PRIMARY KEY (id);
--
-- Name: data_types_pkey; Type: CONSTRAINT; Schema: public; Owner: gouser; Tablespace:
--
ALTER TABLE ONLY data_types
ADD CONSTRAINT data_types_pkey PRIMARY KEY (id);
-- --
-- Name: people_pkey; Type: CONSTRAINT; Schema: public; Owner: gouser; Tablespace: -- Name: people_pkey; Type: CONSTRAINT; Schema: public; Owner: gouser; Tablespace:
-- --
......
PRAGMA foreign_keys=OFF; PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION; BEGIN TRANSACTION;
CREATE TABLE children (id integer primary key, parent_id integer, name varchar(60)); CREATE TABLE children (id integer primary key, parent_id integer, name varchar(60));
CREATE TABLE people(id integer primary key, place_code_id integer, name varchar(60)); CREATE TABLE people(id integer primary key, place_code_id integer, name varchar(60));
CREATE TABLE places (id integer primary key, code_id integer, name varchar(60)); CREATE TABLE places (id integer primary key, code_id integer, name varchar(60));
CREATE TABLE visits (id integer primary key, place_id integer, person_id integer); CREATE TABLE visits (id integer primary key, place_id integer, person_id integer);
CREATE TABLE data_types (id integer primary key, _uint integer, _uintptr integer, _uint8 integer, _uint16 int, _uint32 int, _uint64 int, _int integer, _int8 integer, _int16 integer, _int32 integer, _int64 integer, _float32 real, _float64 real, _byte integer, _rune integer, _bool integer, _string text, _date text, _bytea text, _time text);
COMMIT; COMMIT;
...@@ -10,7 +10,7 @@ import ( ...@@ -10,7 +10,7 @@ import (
"time" "time"
) )
const mgHost = "mongodbhost" const mgHost = "debian"
const mgDatabase = "gotest" const mgDatabase = "gotest"
func getTestData() db.Item { func getTestData() db.Item {
......
...@@ -11,7 +11,7 @@ import ( ...@@ -11,7 +11,7 @@ import (
"time" "time"
) )
const myHost = "127.0.0.1" const myHost = "debian"
const myDatabase = "gotest" const myDatabase = "gotest"
const myUser = "gouser" const myUser = "gouser"
const myPassword = "gopass" const myPassword = "gopass"
......
...@@ -10,7 +10,7 @@ import ( ...@@ -10,7 +10,7 @@ import (
"time" "time"
) )
const pgHost = "192.168.1.110" const pgHost = "debian"
const pgDatabase = "gotest" const pgDatabase = "gotest"
const pgUser = "gouser" const pgUser = "gouser"
const pgPassword = "gopass" const pgPassword = "gopass"
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment