示例#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))
}