예제 #1
0
파일: five.go 프로젝트: NDari/KC_GOLANG
func main() {
	q := "SELECT * FROM happy_fun_times;"
	var db database   // notice this thing
	db = oracle.New() // implicit casting... same as db := database(oracle.New())
	fmt.Println(Query(db, q))
}
예제 #2
0
파일: four.go 프로젝트: NDari/KC_GOLANG
func main() {
	q, db := "SELECT * FROM happy_fun_times;", oracle.New()
	fmt.Println(Query(db, q))
}