June 2017
Intermediate to advanced
400 pages
10h 32m
English
These steps cover writing and running your application:
package database import _ "github.com/go-sql-driver/mysql" //we import supported libraries for database/sql // Exec grabs a new connection // creates tables, and later drops them // and issues some queries func Exec() error { db, err := Setup() if err != nil { return err } // uncaught error on cleanup, but we always // want to cleanup defer db.Exec("DROP TABLE ...Read now
Unlock full access