Example #1
0
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))
}
Example #2
0
func main() {
	q, db := "SELECT * FROM happy_fun_times;", oracle.New()
	fmt.Println(Query(db, q))
}