| 
					
				 | 
			
			
				@@ -28,45 +28,45 @@ var _ = Describe("gosql", func() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			Expect(err).To(Succeed()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// // Note: you need to up MySQL server for this test case 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// Context("for MySQL", func() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 	It("open connection, migrate and select data", func() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		db, err := gosql.Open("mysql://root:root@127.0.0.1:3306/gosql", migrationsDir, false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		Expect(err).To(Succeed()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		err = db.QueryRow(ctx, sql, 1).Scan(&id, &name) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		Expect(err).To(Succeed()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		Expect(id).To(Equal(1)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		Expect(name).To(Equal("alice")) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		err = db.QueryRow(ctx, sql, 2).Scan(&id, &name) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		Expect(err).To(Succeed()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		Expect(id).To(Equal(2)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		Expect(name).To(Equal("bob")) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		Expect(db.Close()).To(Succeed()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 	}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// // Note: you need to up PostgreSQL server for this test case 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// Context("for PostgreSQL", func() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 	It("open connection, migrate and select data", func() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		db, err := gosql.Open("postgres://root:root@127.0.0.1:5432/gosql?sslmode=disable", migrationsDir, false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		Expect(err).To(Succeed()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		err = db.QueryRow(ctx, sql, 1).Scan(&id, &name) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		Expect(err).To(Succeed()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		Expect(id).To(Equal(1)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		Expect(name).To(Equal("alice")) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		err = db.QueryRow(ctx, sql, 2).Scan(&id, &name) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		Expect(err).To(Succeed()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		Expect(id).To(Equal(2)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		Expect(name).To(Equal("bob")) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 		Expect(db.Close()).To(Succeed()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// 	}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		// Note: you need to up MySQL server for this test case 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		Context("for MySQL", func() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			It("open connection, migrate and select data", func() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				db, err := gosql.Open("mysql://root:root@127.0.0.1:3306/gosql", migrationsDir, false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				Expect(err).To(Succeed()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				err = db.QueryRow(ctx, sql, 1).Scan(&id, &name) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				Expect(err).To(Succeed()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				Expect(id).To(Equal(1)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				Expect(name).To(Equal("alice")) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				err = db.QueryRow(ctx, sql, 2).Scan(&id, &name) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				Expect(err).To(Succeed()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				Expect(id).To(Equal(2)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				Expect(name).To(Equal("bob")) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				Expect(db.Close()).To(Succeed()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		// Note: you need to up PostgreSQL server for this test case 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		Context("for PostgreSQL", func() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			It("open connection, migrate and select data", func() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				db, err := gosql.Open("postgres://root:root@127.0.0.1:5432/gosql?sslmode=disable", migrationsDir, false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				Expect(err).To(Succeed()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				err = db.QueryRow(ctx, sql, 1).Scan(&id, &name) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				Expect(err).To(Succeed()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				Expect(id).To(Equal(1)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				Expect(name).To(Equal("alice")) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				err = db.QueryRow(ctx, sql, 2).Scan(&id, &name) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				Expect(err).To(Succeed()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				Expect(id).To(Equal(2)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				Expect(name).To(Equal("bob")) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				Expect(db.Close()).To(Succeed()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		Context("for SQLite", func() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			It("open connection, migrate and select data", func() { 
			 |