func createConnect() *sql.DB {
  db, err := sql.Open("sqlite3", "./plants.db")
  checkErr(err)
  return db
}
//creates database if it doesn't exist and connects to it.
creates database if it doesn't exist and connects to it.
// creates database if it doesn ' t exist and connects to it .
func createConnect() *sql.DB {
  db, err := sql.Open("sqlite3", "./plants.db")
  checkErr(err)
  return db
}
func createConnect ( ) * sql . DB { db , err := sql . Open ( " " , " " ) checkErr ( err ) return db }
creates database if it doesn't exist and connects to it.
creates database if it doesn ' t exist and connects to it .